In the two following sections you will find sample code sending (with a Post) a SOAP message to a Java WSDP and a .NET web service. These post will work without the use of the package SOAP::lite.
Our simple post example now. Let's see how it is so simple to post a SOAP message "manually" to my RCX web service using LWP::UserAgent and HTTP::Request.
Find below the code to send a SOAP message to a .NET web service with Perl. The major change from the preceding call is for the soapAction. So we need to use the LWP and HTTP library object differently to allow to specify the soapAction on the request object.
I will use the Infobel web service again, see the Section called Tip: a way to solve interoperability problem with a NuSoap client (for document/literal web service). in Chapter 2 for a description of this web service.
![]() | ![]() | ![]() |
| Interoperability demo: consume a .NET web service with Perl. | ![]() My home page Index | Make a SOAP client with Python. |