For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > February 2005 > SOAP::Lite WSDL method with multiple soap:body parts









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author SOAP::Lite WSDL method with multiple soap:body parts
rpjoseph@gmail.com

2005-02-16, 8:57 pm

Hi. I am attempting to consume a web service via Perl and SOAP::Lite.
I utilize WSDL as an API for the Web Service. I have rtfm'd over and
over again and can't find any help on this particular problem (even
though I know it must be simple)...

The WSDL method looks like so:

<wsdl:operation name="UpsertProductDetails">
<wsdl:documentation>The operation has no
documentation</wsdl:documentation>
<soap:operation
soapAction="/ProcessDefinitions/km/KMProductsSOAPReceiver"
style="document"/>
<wsdl:input>
<soap:body namespace="InputMessageNamespace"
parts="SSMReqHeader Payload" use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body namespace="OutputMessageNamespace"
parts="SSMResponseHeader SSMResponseMessageStatus" use="literal"/>
</wsdl:output>
<wsdl:fault name="ProductDetailsFaultMessage">
<soap:fault name="ProductDetailsFaultResponse"
namespace="FaultMessageNamespace" use="literal"/>
</wsdl:fault>
</wsdl:operation>

So in Perl I have no problem accessing the method
'UpsertProductDetails'

My problem is when I am trying to build the two separate elements
'SSMReqHeader' and 'Payload'. I just don't know how to access them.

My Perl looks like:
my $productMessage = SOAP::Lite ->
service("http://$requestingServer/cct_product_details_client.wsdl");

my $result = $productMessage -> UpsertProductDetails(
#listofvalues;
);

I of course need to reference the two different elements so that my
body envelope has the two different elements - but I don't know how.

Please let me know if I did not provide enough information and THANK
YOU for any help.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com