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

Issues with SOAP::Lite with Axis2

Expand Messages
  • fdegirmenci
    Hi, I m trying to access a web service using SOAP::Lite and Axis2. There is no problem with the access but returned data seems incomplete. An array with number
    Message 1 of 1 , Aug 12, 2010
    View Source
    • 0 Attachment
      Hi,

      I'm trying to access a web service using SOAP::Lite and Axis2. There is no problem with the access but returned data seems incomplete. An array with number of elements should be returned but only one element can be seen in the output.

      If I use trace, I can see all the data.

      Below is the output of the script on the screen and block between ****************************** is the part of trace output and block between ############################## is the part which I expect to see the output.

      ******************************
      SOAP::Transport::new: ()
      SOAP::Serializer::new: ()
      SOAP::Deserializer::new: ()
      SOAP::Parser::new: ()
      SOAP::Lite::new: ()
      SOAP::Transport::HTTP::Client::new: ()
      SOAP::Data::new: ()
      SOAP::Data::new: ()
      SOAP::Data::new: ()
      SOAP::Lite::call: ()
      SOAP::Serializer::envelope: ()
      SOAP::Serializer::envelope: getList SOAP::Data=HASH(0x3005d64) SOAP::Data=HASH(0x3006014) SOAP::Data=HASH(0x30060b4)
      SOAP::Data::new: ()
      SOAP::Data::new: ()
      SOAP::Data::new: ()
      SOAP::Data::new: ()
      SOAP::Data::new: ()
      SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0x3115264)
      SOAP::Transport::HTTP::Client::send_receive: POST https://testing.com/axis2/services/response?wsdl HTTP/1.1
      Accept: text/xml
      Accept: multipart/*
      Accept: application/soap
      Content-Length: 618
      Content-Type: text/xml; charset=utf-8
      SOAPAction: "http://testing.com#getList"

      <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><getList xmlns="http://testing.com"><systemType xsi:type="xsd:string">SOAPAXIS2</systemType><SystemID xsi:type="xsd:string">AXISACCESS</SystemID><current xsi:type="xsd:string">Test</current></getList></soap:Body></soap:Envelope>
      SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x33053ac)
      SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 200 OK
      Connection: close
      Date: Wed, 11 Aug 2010 15:34:38 GMT
      Server: Apache-Coyote/1.1
      Content-Type: text/xml;charset=utf-8

      <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:getResponse xmlns:ns="http://service.soapaxis.testing.com" xmlns:ax24="http://data.testing.com/xsd" xmlns:ax21="http://soap.apache.org/xsd"><ns:return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax24:StatusContent"><ax24:Ref>Value1</ax24:Ref><ax24:RecordID></ax24:RecordID><ax24:sta>A3</ax24:sta><ax24:num>0:-44:0:0:-125:-56:-98:86</ax24:num></ns:return><ns:return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax24:StaContent"><ax24:Ref> Value2</ax24:Ref><ax24:RecordID></ax24:RecordID><ax24:sta>A1</ax24:sta><ax24:num>0:-44:0:0:-125:-56:-24:-110</ax24:num></ns:return><ns:return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax24:StaContent"><ax24:Ref> Value3</ax24:Ref><ax24:RecordID></ax24:RecordID><ax24:sta>A2</ax24:sta><ax24:num>0:-44:0:0:119:3:-104:76</ax24:num></ns:return><ns:return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax24:StaContent"><ax24:Ref> Value4</ax24:Ref><ax24:RecordID></ax24:RecordID><ax24:sta>A1</ax24:sta><ax24:num>0:-44:0:0:119:2:25:17</ax24:num></ns:return><ns:return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax24:StaContent"><ax24:Ref> Value5</ax24:Ref><ax24:RecordID></ax24:RecordID><ax24:sta>A1</ax24:sta><ax24:num>0:-44:0:0:119:2:20:101</ax24:num></ns:return> </ns:getResponse></soapenv:Body></soapenv:Envelope>
      .
      .
      .
      SOAP::Deserializer::deserialize: ()
      SOAP::Parser::decode: ()
      SOAP::SOM::new: ()
      .
      .
      .

      SOAP::Data::new: ()
      SOAP::Data::new: ()
      SOAP::Data::new: ()
      SOAP::Data::DESTROY: ()
      SOAP::Data::DESTROY: ()
      SOAP::Data::DESTROY: ()
      .
      .
      .
      SOAP::SOM::DESTROY: ()
      SOAP::Lite::DESTROY: ()
      SOAP::Serializer::DESTROY: ()
      SOAP::Data::DESTROY: ()
      SOAP::Data::DESTROY: ()
      SOAP::Data::DESTROY: ()
      SOAP::Data::DESTROY: ()
      SOAP::Data::DESTROY: ()
      SOAP::Data::DESTROY: ()
      SOAP::Data::DESTROY: ()
      SOAP::Data::DESTROY: ()
      SOAP::Transport::DESTROY: ()
      SOAP::Transport::HTTP::Client::DESTROY: ()
      SOAP::Deserializer::DESTROY: ()
      SOAP::Parser::DESTROY: ()
      ******************************
      ##############################
      $VAR1 = bless( {
      'num' => '0:-44:0:0:-125:-56:-24:-110',
      'status' => 'A1',
      'eriRef' => 'Value2',
      '' => ''
      }, 'StatusContent' );
      ##############################

      My question is, the data I really need is actually here but in trace output, not in the proper output. Server response seems ok but I can't see it if I don't use trace.

      What do you think about the source of the problem? What should I do to
      get the data in correct place?

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