| 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.
|