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

Re: [soaplite] Help: Why .Net could Reject SOAP::Lite?

Expand Messages
  • rahed
    ... Hi, have you found offending lines which which don t match .Net service? The following code generates your original request. $SOAP::Constants::NS_ENC =
    Message 1 of 4 , Aug 1, 2009
    View Source
    • 0 Attachment
      On Thu, Jul 30, 2009 at 7:21 PM, Frank Bergmann<fraber@...> wrote:

      > Here is the original request that works:
      >
      > <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
      > <s:Header>
      > <Action s:mustUnderstand="1"
      > xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">urn:com:portsight:golem/IVendorCooperation/GetHandback</Action>
      > </s:Header>
      > <s:Body>
      > <GetHandback xmlns="urn:com:portsight:golem">
      > <handbackID xmlns="">1</handbackID>
      > </GetHandback>
      > </s:Body>
      > </s:Envelope>

      Hi,

      have you found offending lines which which don't match .Net service?

      The following code generates your original request.


      $SOAP::Constants::NS_ENC = undef;

      $soap = SOAP::Lite->new(
      'uri' =>('urn:com:portsight:golem'),
      'proxy' =>('http://your/endpoint'),
      );
      $soap->autotype(0);
      $soap->envprefix('s');

      $header_data = SOAP::Header->name(Action =>
      'urn:com:portsight:golem/IVendorCooperation/GetHandback')->mustUnderstand(1)->uri('http://schemas.microsoft.com/ws/2005/05/addressing/none')->prefix('');
      push @request,$header_data;

      $body_data = SOAP::Data->name(handbackID => 1)->uri('');
      push @request,$body_data;

      $soap->GetHandback(@request);


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