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

AW: Server interprets parameter as empty even the client sends it with a value

Expand Messages
  • Martin Busik
    Hi Andres, ... $webService- call( doc:getCustomerAccessState ,SOAP::Data- name( doc:request ) ... I see there two problems: 1. you need either to add:
    Message 1 of 1 , Nov 3, 2010
    • 0 Attachment
      Hi Andres,

      > my $result =
      >
      $webService->call("doc:getCustomerAccessState",SOAP::Data->name("doc:request
      ")
      > ->type("")->value(SOAP::Data->name("par:customerIdentification")
      > ->type("")->value('0123456700')));

      I see there two problems:

      1. you need either to add:

      $webService->register_ns("http://www.swisscom.com/aih/2008-002/ws/docstylewr
      apper","doc")

      or, to modify the request to:

      $webService->call("getCustomerAccessState",
      SOAP::Data->name("request")->type("")->value(

      \SOAP::Data->name("par:customerIdentification")->type("")->value('0123456700
      ')));

      2. Building the correct xml structure:

      SOAP::Data->name("request")->type("")->value(

      \SOAP::Data->name("par:customerIdentification")->type("")->value('0123456700
      ')));

      Please note the backslash character just before the second SOAP::Data. It
      forces SOAP::Lite to create a
      a element "request" which is a complex element containing another xml
      element "par:customerIdentification".

      More about the first problem - namespace, default namespace, etc. you can
      find here:
      http://geekswithblogs.net/dmillard/archive/2004/10/20/12935.aspx

      HTH,
      Martin
    Your message has been successfully submitted and would be delivered to recipients shortly.