<?php

$cs_id = "";

$req = "
<xml>
  <customer>
    <auth>
	    <session_id>949734773drt319d05f415ehrzfnd05f415ehrz</session_id>		
	    <passphrase>14d910534a78180514s83g</passphrase>
    </auth>
    <operation>INS</operation>
    <debug_on>YES</debug_on>

    <cs_id>" . $cs_id . "</cs_id>
    <cs_sid>2429</cs_sid>
    <hq>1</hq>
    <cs_prov>9.99</cs_prov>
    <cs_discount>5.55</cs_discount>
    <cs_invmode>1</cs_invmode>
    <cs_cr_fav_only>0</cs_cr_fav_only>

 	  <cs_jbstatusmail>0</cs_jbstatusmail>
 	  <cs_jbstatusmail2>0</cs_jbstatusmail2>
 	  <cs_jbstatusmail3>0</cs_jbstatusmail3>
 	  <cs_jbstatusmail_pdf>0</cs_jbstatusmail_pdf>

 	 	<cs_filter></cs_filter>
 	 	<cs_group></cs_group>
 	 	<cs_tracking>0</cs_tracking>

    <company>
      <cmp_type>0</cmp_type>

      <cmp_comp>Comp_23</cmp_comp>
      <cmp_comp2>Comp_24</cmp_comp2>
      <cmp_comp3>Comp_25</cmp_comp3>
      <cmp_comp4>Comp_29</cmp_comp4>

      <ad_street>Ottensener Str.</ad_street>
      <ad_hsno>147</ad_hsno>
      <ad_zipcode>22525</ad_zipcode>
      <ad_city>Hamburg</ad_city>
      <ad_country>DE</ad_country>

      <cmp_iln>ILN012345678924</cmp_iln>
      <cmp_tax_idno>ST0123456729</cmp_tax_idno>
      <cmp_stax_idno>UST0123456729</cmp_stax_idno>

      <cmp_bank>HASPA</cmp_bank>
      <cmp_bankno>200 505 50</cmp_bankno>
      <cmp_bankacc>1234 24 24 29</cmp_bankacc>
      <cmp_iban></cmp_iban>
      <cmp_swift>1234567890</cmp_swift>

      <cmp_logo>ins_logo.jpg</cmp_logo>
      <cmp_logo_width>300</cmp_logo_width>
      <cmp_logo_height>200</cmp_logo_height>

      <cmp_remark>BEMERKUNG_24</cmp_remark>
      <cmp_remark2>BEMERKUNG_29</cmp_remark2>
      <cmp_match>BUZZWORDS HERE</cmp_match>
      <cmp_match2>TEST 24 29</cmp_match2>

      <cmp_newsletter>0</cmp_newsletter>
      <cmp_pda_usage>1</cmp_pda_usage>
    </company>

    <user>
      <usr_name>Name</usr_name>
      <usr_firstname>Vorname</usr_firstname>
      <usr_birthdate>1972-02-01</usr_birthdate>

      <usr_email>test@test.de</usr_email>
      <usr_inv_email>inv.test@test.de</usr_inv_email>
      <usr_phone>040 4567890</usr_phone>
      <usr_phone2>0172 1234567</usr_phone2>
      <usr_fax></usr_fax>

      <usr_account>test2429</usr_account>
      <usr_password>plain2429</usr_password>
    </user>

    <costcenters>
      <costcenter>
        <csc_operation>UPT</csc_operation>
        <csc_id>1111</csc_id>

        <csc_id_parent>1110</csc_id_parent>
        <csc_name>CSC_NAME_24_29</csc_name>

        <costcenteraddresses>
         <costcenteraddress>
           <cscad_operation>UPT</cscad_operation>
           <adt_id>23456</adt_id>

           <cscad_comp>CMP_124</cscad_comp>
           <cscad_comp2>CMP_229</cscad_comp2>
           <cscad_comp3>CMP_324</cscad_comp3>
           <cscad_comp4>CMP_429</cscad_comp4>

           <ad_street>Str.</ad_street>
           <ad_hsno>1</ad_hsno>
           <ad_floor></ad_floor>
           <ad_zipcode>22844</ad_zipcode>
           <ad_city>Norderstedt</ad_city>
           <ad_country>DE</ad_country>

           <cscad_person>DER</cscad_person>
           <cscad_phone>040 1234567</cscad_phone>
           <cscad_email>er@er.de</cscad_email>
           <cscad_remark>Bemerkung</cscad_remark>
         </costcenteraddress>
         
         <costcenteraddress>
           <cscad_operation>UPT</cscad_operation>
           <adt_id>23456</adt_id>

           <cscad_comp>CMP_1</cscad_comp>
           <cscad_comp2>CMP_2</cscad_comp2>
           <cscad_comp3>CMP_3</cscad_comp3>
           <cscad_comp4>CMP_4</cscad_comp4>

           <ad_street>Str.</ad_street>
           <ad_hsno>1</ad_hsno>
           <ad_floor></ad_floor>
           <ad_zipcode>22844</ad_zipcode>
           <ad_city>Norderstedt</ad_city>
           <ad_country>DE</ad_country>

           <cscad_person>DER</cscad_person>
           <cscad_phone>040 1234567</cscad_phone>
           <cscad_email>er@er.de</cscad_email>
           <cscad_remark>Bemerkung</cscad_remark>
         </costcenteraddress>

        </costcenteraddresses>
      </costcenter>

    </costcenters>

  </customer>
</xml>";


$req = "
<xml>
<customer>
<auth>
<session_id>949734773drt319d05f415ehrzfnd05f415ehrz</session_id>
<passphrase>14d910534a78180514s83g</passphrase></auth>
<operation>INS</operation>
<debug_on>YES</debug_on>
<cs_id/>
<cs_sid/>
<hq/>
<cs_prov/>
<cs_discount/>
<cs_invmode/>
<cs_cr_fav_only/>
<cs_jbstatusmail/>
<cs_jbstatusmail2/>
<cs_jbstatusmail3/>
<cs_jbstatusmail_pdf/>
<cs_filter/>
<cs_group/>
<cs_tracking/>
<company>
<cmp_type/>
<cmp_comp><![CDATA[Assecutor Data Service GmbH]]></cmp_comp>
<cmp_comp2><![CDATA[]]></cmp_comp2>
<cmp_comp3><![CDATA[]]></cmp_comp3>
<cmp_comp4><![CDATA[]]></cmp_comp4>
<ad_street><![CDATA[Caspar-Voght-Straße]]></ad_street>
<ad_hsno><![CDATA[8]]></ad_hsno>
<ad_zipcode><![CDATA[22525]]></ad_zipcode>
<ad_city><![CDATA[Hamburg]]></ad_city>
<ad_country><![CDATA[Deutschland]]></ad_country>
<cmp_iln><![CDATA[]]></cmp_iln>
<cmp_tax_idno><![CDATA[]]></cmp_tax_idno>
<cmp_stax_idno><![CDATA[]]></cmp_stax_idno>
<cmp_bank><![CDATA[]]></cmp_bank>
<cmp_bankno><![CDATA[]]></cmp_bankno>
<cmp_bankacc><![CDATA[]]></cmp_bankacc>
<cmp_iban><![CDATA[]]></cmp_iban>
<cmp_swift><![CDATA[]]></cmp_swift>
<cmp_logo><![CDATA[]]></cmp_logo>
<cmp_logo_width><![CDATA[]]></cmp_logo_width>
<cmp_logo_height><![CDATA[]]></cmp_logo_height>
<cmp_remark><![CDATA[]]></cmp_remark>
<cmp_remark2><![CDATA[]]></cmp_remark2>
<cmp_match><![CDATA[]]></cmp_match>
<cmp_match2><![CDATA[]]></cmp_match2>
<cmp_newsletter><![CDATA[]]></cmp_newsletter>
<cmp_pda_usage><![CDATA[]]></cmp_pda_usage></company>
<user>
<usr_name><![CDATA[]]></usr_name>
<usr_firstname><![CDATA[Torben]]></usr_firstname>
<usr_birthdate><![CDATA[]]></usr_birthdate>
<usr_email><![CDATA[tf@assecutor.de]]></usr_email>
<usr_inv_email><![CDATA[]]></usr_inv_email>
<usr_phone><![CDATA[000]]></usr_phone>
<usr_phone2><![CDATA[]]></usr_phone2>
<usr_fax><![CDATA[]]></usr_fax>
<usr_account><![CDATA[]]></usr_account>
<usr_password><![CDATA[]]></usr_password></user>
<costcenters>
<costcenter>
<csc_operation/>
<csc_id/>
<csc_id_parent/>
<csc_name><![CDATA[]]></csc_name>
<costcenteraddresses>
<costcenteraddress>
<cscad_operation><![CDATA[]]></cscad_operation>
<adt_id><![CDATA[]]></adt_id>
<cscad_comp><![CDATA[]]></cscad_comp>
<cscad_comp2><![CDATA[]]></cscad_comp2>
<cscad_comp3><![CDATA[]]></cscad_comp3>
<cscad_comp4><![CDATA[]]></cscad_comp4>
<ad_street><![CDATA[Caspar-Voght-Strau00dfe]]></ad_street>
<ad_hsno><![CDATA[]]></ad_hsno>
<ad_floor><![CDATA[]]></ad_floor>
<ad_zipcode><![CDATA[22525]]></ad_zipcode>
<ad_city><![CDATA[Hamburg]]></ad_city>
<ad_country><![CDATA[Deutschland]]></ad_country>
<cscad_person><![CDATA[]]></cscad_person>
<cscad_phone><![CDATA[]]></cscad_phone>
<cscad_email><![CDATA[]]></cscad_email>
<cscad_remark><![CDATA[]]></cscad_remark></costcenteraddress></costcenteraddresses></costcenter></costcenters></customer></xml>
";


$reqEncoded = urlencode($req);
?>


<html>

<head>

</head>

<body>

  <form name="test_request" action="https://mps1.assecutor.de/test_tp/service/customer_request.php" method="post">
  
    <input type="hidden" name="customerReq" value="<?php echo $reqEncoded ?>">

    <input type="submit" value="Senden POST">


  </form>

</body>

</html>
