title: Problems with SOAP request
body: <p>I am trying to integrate Siebel CRM with SAP system via...
  The problem is : the SOAP request that siebel is generating is giving me an error while if I use SOAP UI to generate the SOAP request, it is working fine. Following are the error mesages and SOAP requests generated</p>
  
  <p>Error from siebel SOAP request : </p>
  
  <blockquote>
    <p>CX_ST_MATCH_ELEMENT:.System expected element 'PiCopyreference'".(SBL-EAI-04308)</p>
  </blockquote>
  
  <p>Unsuccessful Siebel generated SOAP Request:-</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
      &lt;SOAP-ENV:Body&gt;
          &lt;CustomerCreatefromdata1 xmlns="urn:sap-com:document:sap:soap:functions:mc-style"&gt;
              &lt;PiCompanydata xmlns="urn:sap-com:document:sap:soap:functions:mc-style"&gt;&lt;/PiCompanydata&gt;
              &lt;PiCopyreference xmlns="urn:sap-com:document:sap:soap:functions:mc-style"&gt;
                  &lt;Salesorg xmlns="urn:sap-com:document:sap:soap:functions:mc-style"&gt;0001&lt;/Salesorg&gt;
                  &lt;DistrChan xmlns="urn:sap-com:document:sap:soap:functions:mc-style"&gt;01&lt;/DistrChan&gt;
                  &lt;Division xmlns="urn:sap-com:document:sap:soap:functions:mc-style"&gt;01&lt;/Division&gt;
                  &lt;RefCustmr xmlns="urn:sap-com:document:sap:soap:functions:mc-style"&gt;0000000011&lt;/RefCustmr&gt;
              &lt;/PiCopyreference&gt;
              &lt;PiOptCompanydata xmlns="urn:sap-com:document:sap:soap:functions:mc-style"&gt;&lt;/PiOptCompanydata&gt;
              &lt;PiOptPersonaldata xmlns="urn:sap-com:document:sap:soap:functions:mc-style"&gt;
                  &lt;Transpzone xmlns="urn:sap-com:document:sap:soap:functions:mc-style"&gt;0000000001&lt;/Transpzone&gt;
              &lt;/PiOptPersonaldata&gt;
              &lt;PiPersonaldata xmlns="urn:sap-com:document:sap:soap:functions:mc-style"&gt;
                  &lt;TitleP xmlns="urn:sap-com:document:sap:soap:functions:mc-style"&gt;MR&lt;/TitleP&gt;
                  &lt;Firstname xmlns="urn:sap-com:document:sap:soap:functions:mc-style"&gt;FirstN&lt;/Firstname&gt;
                  &lt;Lastname xmlns="urn:sap-com:document:sap:soap:functions:mc-style"&gt;lastN&lt;/Lastname&gt;
                  &lt;City xmlns="urn:sap-com:document:sap:soap:functions:mc-style"&gt;SomeCity&lt;/City&gt;
                  &lt;PostlCod1 xmlns="urn:sap-com:document:sap:soap:functions:mc-style"&gt;7866&lt;/PostlCod1&gt;
                  &lt;Country xmlns="urn:sap-com:document:sap:soap:functions:mc-style"&gt;AT&lt;/Country&gt;
                  &lt;LanguP xmlns="urn:sap-com:document:sap:soap:functions:mc-style"&gt;E&lt;/LanguP&gt;
                  &lt;Currency xmlns="urn:sap-com:document:sap:soap:functions:mc-style"&gt;INR&lt;/Currency&gt;
              &lt;/PiPersonaldata&gt;
          &lt;/CustomerCreatefromdata1&gt;
      &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  
  <p>Successfull SOAP UI generated request :-</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style"&gt;
      &lt;soapenv:Header/&gt;
      &lt;soapenv:Body&gt;
          &lt;urn:CustomerCreatefromdata1&gt;
              &lt;PiCompanydata/&gt;
              &lt;PiCopyreference&gt;
                  &lt;Salesorg&gt;0001&lt;/Salesorg&gt;
                  &lt;DistrChan&gt;01&lt;/DistrChan&gt;
                  &lt;Division&gt;01&lt;/Division&gt;
                  &lt;RefCustmr&gt;0000000011&lt;/RefCustmr&gt;
              &lt;/PiCopyreference&gt;
              &lt;PiOptCompanydata/&gt;
              &lt;PiOptPersonaldata&gt;
                  &lt;Transpzone&gt;0000000001&lt;/Transpzone&gt;
              &lt;/PiOptPersonaldata&gt;
              &lt;PiPersonaldata&gt;
                  &lt;TitleP&gt;MR&lt;/TitleP&gt;
                  &lt;Firstname&gt;FirstN&lt;/Firstname&gt;
                  &lt;Lastname&gt;lastN&lt;/Lastname&gt;
                  &lt;City&gt;SomeCity&lt;/City&gt;
                  &lt;PostlCod1&gt;7866&lt;/PostlCod1&gt;
                  &lt;Country&gt;AT&lt;/Country&gt;
                  &lt;LanguP&gt;E&lt;/LanguP&gt;
                  &lt;Currency&gt;INR&lt;/Currency&gt;
              &lt;/PiPersonaldata&gt;
          &lt;/urn:CustomerCreatefromdata1&gt;
      &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>Also in siebel i'm generating the SOAP request using workflows(no scripting involved).</p>