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

soap:lite service returning complex types-interoperability problems on clients

Expand Messages
  • t_elia
    In soap::lite perl service, the get_srvorder_details method returns the following complex structure: sub get_srvorder_details{ my @srv = (
    Message 1 of 1 , Feb 26, 2008
    View Source
    • 0 Attachment
      In soap::lite perl service, the get_srvorder_details method returns
      the following complex structure:

      sub get_srvorder_details{
      my @srv = ( format_general_out($$ret{err_info}));

      return SOAP::Data->name("result")->attr({"xmlns:tns1"=>URI})->type(
      "tns1:item_get_srvorder_details")->value(\SOAP::Data->value(@srv));
      }

      sub format_general_out{
      my @gen = (
      SOAP::Data->name("err_code"=>$$gn{err_code})->type("int"),
      SOAP::Data->name("err_text"=>$$gn{err_text})->type("string"));

      return SOAP::Data->name( "err_info" )->attr( {"xmlns:tns1" => URI} )
      ->type( "tns1:General_out" )->value( \SOAP::Data->value(@gen));
      }

      I have created the wsdl file for this service using POD::WSDL tool. I
      use this generated file to create the necessary client/proxy in java
      and it works fine(the result is returned), but when i do the same in
      C# .NET in the response returned is null.

      Does anyone encountered this error before? What i am doing wrong? I
      have placed the necessary serializers for the methods on the server
      as well but nothing works.
    Your message has been successfully submitted and would be delivered to recipients shortly.