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

4535Re: SOAP::Lite with NuSOAP

Expand Messages
  • jameshargreavesgmail
    Apr 4, 2005
      Hi everyone!

      With regards the problem I previously posted how might I capture the
      incoming request as seen from the server? I have been analysing the
      input structures for SOAP::Server::handle and there are considerable
      differences in each case.

      Thanks
      Jay

      --- In soaplite@yahoogroups.com, "jameshargreavesgmail"
      <james.hargreaves@g...> wrote:
      >
      > Hi everyone!
      >
      > I'm having a few teething problems getting my SOAP::Lite server to
      > respond to a simple client I have written in PHP using NuSOAP. Does
      > anyone have any experience of these two working together?
      >
      > I've included the HTTP requests involved below - can anyone see what
      > is wrong with the NuSOAP request the would cause the failure? My only
      > thought is that it might be to do with the encoding but I don't know
      > how to change this is NuSOAP? Plus I'm probably wrong :)
      >
      > Thanks
      > Jay
      >
      > ---
      >
      > Request Sent By SOAP::Lite Perl Client - WORKS
      >
      > SOAP::Transport::HTTP::Client::send_receive:
      > POST http://test.rigadon.com:7627 HTTP/1.1
      > Accept: text/xml
      > Accept: multipart/*
      > Content-Length: 541
      > Content-Type: text/xml; charset=utf-8
      > SOAPAction: "SOAPAtlas#login"
      >
      > <?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>
      > <namesp1:login xmlns:namesp1="SOAPAtlas">
      > <login xsi:type="xsd:string">HPW</login>
      > <password xsi:type="xsd:string">3os0wnGCm</password>
      > </namesp1:login>
      > </SOAP-ENV:Body>
      > </SOAP-ENV:Envelope>
      >
      > ---
      >
      > Request Sent By NuSOAP PHP Client - FAILS
      >
      > POST HTTP/1.0
      > Host: test.rigadon.com:7627
      > User-Agent: NuSOAP/0.6.8 (1.85)
      > Content-Type: text/xml; charset=ISO-8859-1
      > SOAPAction: "SOAPAtlas#login"
      > Content-Length: 581
      >
      > <?xml version="1.0" encoding="ISO-8859-1"?>
      > <SOAP-ENV:Envelope
      > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
      > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
      > xmlns:si="http://soapinterop.org/xsd">
      > <SOAP-ENV:Body>
      > <ns5732:login xmlns:ns5732="SOAPAtlas">
      > <login xsi:type="xsd:string">HPW</login>
      > <password xsi:type="xsd:string">3os0wnGCm</password>
      > </ns5732:login>
      > </SOAP-ENV:Body>
      > </SOAP-ENV:Envelope>
      >
      > ---
      >
      > <?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>SOAP-ENV:Client</faultcode>
      > <faultstring>Application failed during request deserialization:
      > no element found at line 1, column 0, byte -1 at
      > /usr/lib/perl5/vendor_perl/5.8.4/i586-linux/XML/Parser.pm line
      > 187</faultstring>
      > <faultactor>http://npc74:7627/</faultactor>
      > </SOAP-ENV:Fault>
      > </SOAP-ENV:Body>
      > </SOAP-ENV:Envelope>
    • Show all 4 messages in this topic