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

6104Problem with EncodingStyle

Expand Messages
  • Paco Regodón
    Feb 4, 2008
    • 0 Attachment

      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"
                  <login xmlns="">
                          <username xsi:type="xsd:string">USERNAME</username>
                          <password xsi:type="xsd:string">PASSWORD</password>

      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/">

      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.