http://qs1969.pair.com?node_id=632703

palette has asked for the wisdom of the Perl Monks concerning the following question:

I have a wsdl provided where the binding uses the style=document

I have worked with style=rpc and I know the strcuture of the object that I need to pass.

In the wsdl style=document the operation soap body is use=literal and the soap action has the URL. So whats the significance of the soap action there and use=literal

I was going through some URL's for soap to understand the difference between style=document and style=rpc

I understood that there is no restriction over the message you are sending in soap:body in style=document. What do they mean by this.

So Is that I should be building an XML and then sending that xml file as argument in my soap call for the style=document.

Can anyone tell me what should I be sending as argument in my soap call.

Replies are listed 'Best First'.
Re: Soap client
by erroneousBollock (Curate) on Aug 16, 2007 at 06:41 UTC
    Could you post the WSDL? (please anonymize any sensitive data)

    I've not tried document-style SOAP with SOAP::Lite, but I'm interested to see the method-proxies that SOAP::WSDL would create.

    -David

      .... <binding name="mlcGws" type="s0:mlcGws"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" sty +le="document"/> <operation name="LCRequest"> <soap:operation soapAction="http://../LCRequest" style="document +"/> <input> <soap:body use="literal"/> </input> <output> <soap:body use="literal"/> </output> </operation> </binding> <service name="mlcGw"> <port name="mlcGws" binding="s0:mlcGws"> <soap:address location="http://localhost:9443/LC"/> </port> </service> </definitions> ...


      I wanted to know how can I pass over the SOAP call. I have given a sample XML and this WSDL.

      So I will go on building the XML according to the WSDL and call the soap method name that they are exposing. So where will I send the XML that i have built. Will that be an argument to the soap call.