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

Re: SOAP::Lite with NuSOAP

Expand Messages
  • jameshargreavesgmail
    Thanks Byrne for replying to my last post! I ve now added the following line to the SOAP::Server::handle method in order output the HTTP::Request object: print
    Message 1 of 4 , Apr 4, 2005
    • 0 Attachment
      Thanks Byrne for replying to my last post!

      I've now added the following line to the SOAP::Server::handle method
      in order output the HTTP::Request object:

      print Dumper($self->request);

      The output in each case is shown below. You'll note that in the PHP
      case very little data is stored in the HTTP::Request. Can anyone see
      how this might have occurred?

      Thanks
      Jay

      ---

      HTTP::Request object sent by NuSOAP PHP client - FAILS

      $VAR1 = bless( {
      '_protocol' => 'HTTP/0.9',
      '_content' => '',
      '_uri' => bless( do{\(my $o = 'HTTP/1.0')},
      'URI::http' ),
      '_headers' => bless( {}, 'HTTP::Headers' ),
      '_method' => 'POST'
      }, 'HTTP::Request' );

      ---

      HTTP::Request object sent by SOAP::Lite Perl client - WORKS

      $VAR1 = bless( {
      '_protocol' => 'HTTP/1.1',
      '_content' => '<?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>',
      '_uri' => bless( do{\(my $o = '/')}, 'URI::http' ),
      '_headers' => bless( {
      'user-agent' =>
      'SOAP::Lite/Perl/0.60',
      'connection' => 'TE, close',
      'accept' => [
      'text/xml',
      'multipart/*'
      ],
      'te' => 'deflate,gzip;q=0.3',
      'content-length' => '541',
      'host' =>
      'test.rigadon.com:7627',
      'soapaction' =>
      '"SOAPAtlas#login"',
      'content-type' => 'text/xml;
      charset=utf-8'
      }, 'HTTP::Headers' ),
      '_method' => 'POST'
      }, 'HTTP::Request' );

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