<?php

$cs_id = "1";

$req = "
<xml>
  <customer>
    <auth>
      <session_id>XXXX</session_id>
      <passphrase>YYYY</passphrase>
    </auth>
    <operation>UPD</operation>
    <debug_on>NO</debug_on>

    <cs_id>" . $cs_id . "</cs_id>
    <cs_sid>1111</cs_sid>
    <hq></hq>
    <cs_prov>1.10</cs_prov>
    <cs_discount>1.11</cs_discount>
    <cs_invmode>1</cs_invmode>
    <cs_cr_fav_only>1</cs_cr_fav_only>

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

 	 	<cs_filter>,MM,,LT,</cs_filter>
 	 	<cs_group>,1,</cs_group>
 	 	<cs_tracking>0</cs_tracking>

    <company>
      <cmp_type>0</cmp_type>

      <cmp_comp>Comp_41</cmp_comp>
      <cmp_comp2>Comp_42</cmp_comp2>
      <cmp_comp3>Comp_43</cmp_comp3>
      <cmp_comp4>Comp_44</cmp_comp4>

      <ad_street>Am Ochsenzoll</ad_street>
      <ad_hsno>147</ad_hsno>
      <ad_zipcode>22851</ad_zipcode>
      <ad_city>Norderstedt</ad_city>
      <ad_country>DE</ad_country>

      <cmp_iln>ILN01234567894</cmp_iln>
      <cmp_tax_idno>ST012345674</cmp_tax_idno>
      <cmp_stax_idno>UST012345674</cmp_stax_idno>

      <cmp_bank>HASPA</cmp_bank>
      <cmp_bankno>200 505 50</cmp_bankno>
      <cmp_bankacc>1234 11 55 55</cmp_bankacc>
      <cmp_iban></cmp_iban>
      <cmp_swift>12345678904</cmp_swift>

      <cmp_logo>ins_logo.jpg</cmp_logo>
      <cmp_logo_width>340</cmp_logo_width>
      <cmp_logo_height>240</cmp_logo_height>

      <cmp_remark>BEMERKUNG_4</cmp_remark>
      <cmp_remark2>BEMERKUNG_4</cmp_remark2>
      <cmp_match>BUZZWORDS HERE_4</cmp_match>
      <cmp_match2>TEST_4</cmp_match2>

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

    <user>
      <usr_name>Name4</usr_name>
      <usr_firstname>Vorname4</usr_firstname>
      <usr_birthdate>1972-04-04</usr_birthdate>

      <usr_email>--DEL--</usr_email>
      <usr_inv_email>test4@test.de</usr_inv_email>
      <usr_phone>--DEL--</usr_phone>
      <usr_phone2>040 45678904</usr_phone2>
      <usr_fax>--DEL--</usr_fax>

      <usr_account>ag_test_05</usr_account>
      <usr_password>test12345</usr_password>
    </user>

    <costcenters>
      <costcenter>
        <csc_operation>UPD</csc_operation>
        <csc_id>1</csc_id>

        <csc_pre_id>0</csc_pre_id>
        <csc_name>TEST_CSC_ROOT_4</csc_name>

        <costcenteraddresses>
         <costcenteraddress>
           <cscad_operation>UPD</cscad_operation>
           <adt_id>3</adt_id>

           <cscad_comp>CMP_44</cscad_comp>
           <cscad_comp2>CMP_45</cscad_comp2>
           <cscad_comp3>CMP_46</cscad_comp3>
           <cscad_comp4>CMP_47</cscad_comp4>

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

           <cscad_person>3ER</cscad_person>
           <cscad_phone>040 12345673</cscad_phone>
           <cscad_email>4er@er.de</cscad_email>
           <cscad_remark>Bemerkung 4</cscad_remark>
         </costcenteraddress>
         
         <costcenteraddress>
           <cscad_operation>UPD</cscad_operation>
           <adt_id>4</adt_id>

           <cscad_comp>CMP_411</cscad_comp>
           <cscad_comp2>CMP_421</cscad_comp2>
           <cscad_comp3>CMP_431</cscad_comp3>
           <cscad_comp4>CMP_441</cscad_comp4>

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

           <cscad_person>4ER</cscad_person>
           <cscad_phone>040 12345674</cscad_phone>
           <cscad_email>44er@er.de</cscad_email>
           <cscad_remark>Bemerkung 44</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>
