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

Using SOAP::Lite to call Web Services from Perl - Problem on Linux

Expand Messages
  • neilholmesuk
    I am trying to make use of SOAP::LITE for calling Web Services from Perl. I have Windows and Linux Installations. On Windows the following works fine :-
    Message 1 of 1 , Nov 15, 2006
    • 0 Attachment
      I am trying to make use of SOAP::LITE for calling Web Services from
      Perl.

      I have Windows and Linux Installations.


      On Windows the following works fine :-


      #!/usr/local/bin/perl
      use SOAP::Lite;
      print SOAP::Lite
      -> service('http://neilvmes3:8082/ws/EcsAddEntry?wsdl')
      -> TK_ADD_ENTRY('Neil Holmes','Greatest Hits
      Volume','CD','9.99','www.proiv.com');


      The data is added to the application behind the web services and a
      success flag is returned.


      The Linux version of the same call :-


      #!perl
      use SOAP::Lite;
      print SOAP::Lite
      -> service('http://neilvmes3:8082/ws/EcsAddEntry?wsdl')
      -> TK_ADD_ENTRY('Neil Holmes','Greatest
      Hits','CD','9.99','www.proiv.com');


      Appears to run (no errors) but the application is not updated and no
      success flag is returned.

      Does anyone have some suggestions as to what might be causing this ?
      Or what I can do to try and track down the problem.

      Debug on the Linux version returns :-

      SOAP::Transport::HTTP::Client::send_receive: POST
      http://neilvmes3:8082/ws/EcsAddEntry HTTP/1.1
      Accept: text/xml
      Accept: multipart/*
      Content-Length: 679
      Content-Type: text/xml; charset=utf-8
      SOAPAction: "http://neilvmes3:8082/ws/EcsAddEntry"


      <?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><TK_ADD_ENTRY
      xmlns=""><parameters>Neil Holmes</parameters><c-gensym4
      xsi:type="xsd:string">Greatest Hits</c-gensym4><c-gensym6
      xsi:type="xsd:string">CD</c-gensym6><c-gensym8
      xsi:type="xsd:float">9.99</c-gensym8><c-gensym10
      xsi:type="xsd:string">www.proiv.com</c-
      gensym10></TK_ADD_ENTRY></SOAP-ENV:Body></SOAP-ENV:Envelope>
      SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 200 OK
      Connection: close
      Date: Mon, 13 Nov 2006 06:25:56 GMT
      Server: Jetty/5.1.10 (Linux/2.4.21-4.EL i386 java/1.5.0_03
      Content-Length: 413
      Content-Type: text/xml; charset=utf-8
      Client-Date: Mon, 13 Nov 2006 06:25:56 GMT
      Client-Response-Num: 1
      SOAPAction: ""


      <SOAP-ENV:Envelope
      xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-
      ENV:Header/><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Clie­
      nt</faultcode><faultstring>Error
      identifying Web Service: class
      com.northgateis.proiv.ws.servlet.WebServiceIdentificationException:
      Parameter ARTIST had 0 entry in the message part. Expecting
      1.</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-
      ENV:Envelope>

      Any suggestions very greatfully received.


      Many Thanks


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