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

interpreting rpc return values

Expand Messages
  • rayletts
    I can contact the server script with my client perl script however I get errors of type unexpected text/html when i use the examples in the tutorial or If I
    Message 1 of 1 , Oct 22, 2002
    • 0 Attachment
      I can contact the server script with my client perl script however
      I get errors of type 'unexpected text/html'
      when i use the examples in the tutorial
      or If I try calling the stockquote service I get errors of type:
      no element found at line 1

      Do I have to cast/de-serialize the xml stream returning?

      In the end what I want to do is sent an order.xml file in
      soap wrapper to a perl script that will validate it vs a schema, insert to a database and return good/bad confirmation of order.

      TIA

      Ray
      --------------------------

      Server:

      #!/usr/local/bin/perl -w

      use strict;
      use lib '/app/apache/cgi-bin/Orders';
      use SOAP::Transport::HTTP;
      use Orders;

      SOAP::Transport::HTTP::CGI
      -> dispatch_to('/app/apache/cgi-bin/Modules/', 'Orders','Demo')
      -> handle;


      Client:
      #!/usr/local/bin/perl


      use SOAP::Lite +trace => all;
      my $soap = SOAP::Lite
      -> uri('Demo')
      -> proxy('http://sand.ola.bc.ca/cgi-bin/Ivory.pl');
      defined (my $temp = $soap->hi()->result) or die ;
      print $temp;


      Trace:
      .
      .
      .
      SOAP::Data::new: ()
      SOAP::Data::new: ()
      SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0x39cac8)
      SOAP::Transport::HTTP::Client::send_receive: POST http://sandy.ola.bc.ca/cgi-bin/Ivory.pl
      Accept: text/xml
      Accept: multipart/*
      Content-Length: 426
      Content-Type: text/xml; charset=utf-8
      SOAPAction: "Demo#hi"

      <?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:hi xmlns:namesp1="Demo"/></SOAP-ENV:Body></SOAP-ENV:Envelope>
      SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x4e240c)
      SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 200 OK
      Connection: close
      Date: Tue, 22 Oct 2002 20:46:54 GMT
      Server: Apache/1.3.23 (Unix)
      Content-Type: text/html; charset=ISO-8859-1
      Client-Date: Tue, 22 Oct 2002 20:46:55 GMT
      Client-Response-Num: 1
      Client-Transfer-Encoding: chunked


      Unexpected Content-Type 'text/html; charset=iso-8859-1' returned
      SOAP::Lite::DESTROY: ()
      .
      .
      .
    Your message has been successfully submitted and would be delivered to recipients shortly.