Loading ...
Sorry, an error occurred while loading the content.

Problem with EncodingStyle

Expand Messages
  • Paco Regodón
    Hello, I am using SOAP::Data to build a request to a SOAP server. I send ir with SOAP::Lite, generating this request XML:
    Message 1 of 1 , Feb 4, 2008
    • 0 Attachment
      Hello,

      I am using SOAP::Data to build a request to a SOAP server. I send ir with SOAP::Lite, generating this request XML:

      <?xml version="1.0" encoding="UTF-8"?>
          <SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
              xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
              xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
              xmlns:xsd="http://www.w3.org/1999/XMLSchema"
              SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
              <SOAP-ENV:Body>
                  <login xmlns="">
                      <request>
                          <username xsi:type="xsd:string">USERNAME</username>
                          <password xsi:type="xsd:string">PASSWORD</password>
                      </request>
                  </login>
              </SOAP-ENV:Body>
          </SOAP-ENV:Envelope>


      The problem comes with the red line SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/". Remote server seems to crash with my request since i get this response:

      <?xml version="1.0" encoding="UTF-8"?>
      <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
          <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
              <soap:Fault>
                  <faultcode>soap:Server</faultcode>
                  <faultstring>INTERNAL_ERROR</faultstring>
              </soap:Fault>
          </soap:Body>
      </soap:Envelope>


      If i remove that SOAP-ENV:encodingStyle line, request works fine. Why am i getting this error? Is the remote server a non standard one? Is it a bug in SOAP::Lite? How can i remove encodingStyle from my envelope?

      Thanks for your help.

      Paco


    Your message has been successfully submitted and would be delivered to recipients shortly.