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

Interoperability problem: Unrecognized type '{http://www.w3.org/1999/XMLSchema}str

Expand Messages
  • Stephane Bortzmeyer
    [Sent to two mailing lists because it is an interoperability problem and I m not sure who the guilty is.] I have a very simple SOAP application where the
    Message 1 of 1 , Sep 23, 2003
    • 0 Attachment
      [Sent to two mailing lists because it is an interoperability problem
      and I'm not sure who the guilty is.]

      I have a very simple SOAP application where the server is in Perl and
      uses SOAP::Lite and the client is in Python and uses SOAPpy.

      With Perl 5.6.1 / SOAP::Lite 0.55 and Python 2.1.3 / SOAPpy 0.9.7,
      everything was fine.

      Now, I upgraded (from Debian "stable" to Debian "unstable") and I use
      the same versions of SOAP::Lite and SOAPpy. Perl is now 5.8.0 and
      Python is 2.2.3. Each time the client runs, I get a <Fault
      SOAP-ENV:Client: Application failed during request deserialization:
      Unrecognized type '{http://www.w3.org/1999/XMLSchema}str'>.

      Sniffing the session does not seem to show a difference so I'm
      puzzled.

      Here is the client, with SOAP.Config.debug=1:


      *** Outgoing HTTP headers **********************************************
      POST / HTTP/1.0
      Host: vespucci:8080
      User-agent: SOAP.py 0.9.7 (actzero.com)
      Content-type: text/xml; charset="UTF-8"
      Content-length: 515
      SOAPAction: ""
      ************************************************************************
      *** Outgoing SOAP ******************************************************
      <?xml version="1.0" encoding="UTF-8"?>
      <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
      <SOAP-ENV:Body>
      <ns1:is_available xmlns:ns1="urn:Meticiel" SOAP-ENC:root="1">
      <v1 xsi:type="xsd:str">nica.fr</v1>
      </ns1:is_available>
      </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>
      ************************************************************************
      *** Incoming HTTP headers **********************************************
      HTTP/1.? 500 Internal Server Error
      Date: Tue, 23 Sep 2003 08:52:43 GMT
      Server: libwww-perl-daemon/1.26
      Content-Length: 718
      Content-Type: text/xml; charset=utf-8
      SOAPServer: SOAP::Lite/Perl/0.55
      ************************************************************************
      *** Incoming SOAP ******************************************************
      <?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><SOAP-ENV:Fault><faultcode xsi:type="xsd:string">SOAP-ENV:Client</faultcode><faultstring xsi:type="xsd:string">Application failed during request deserialization: Unrecognized type '{http://www.w3.org/1999/XMLSchema}str'
      </faultstring><faultactor xsi:type="xsd:string">http://vespucci.nic.fr:8080/</faultactor></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
      ************************************************************************
      Traceback (most recent call last):
      File "available-client-soap.py", line 20, in ?
      result = server.is_available(domain);
      File "/usr/lib/python2.2/site-packages/SOAP.py", line 3603, in __r_call
      self.__hd, self.__ma)
      File "/usr/lib/python2.2/site-packages/SOAP.py", line 3532, in __call
      raise p
      SOAP.faultType: <Fault SOAP-ENV:Client: Application failed during request deserialization: Unrecognized type '{http://www.w3.org/1999/XMLSchema}str'
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.