NOTE: Microsoft does not provide support for Perl.
- Perl version 5.00503 or later
- Microsoft SOAP Toolkit version 2.0 Service Pack 2
- .NET Framework Software Development Kit (SDK)
- SOAP::Lite versions 0.51 or later installed
- How to set up a Perl distribution from the Comprehensive Perl Archive Network (CPAN). If the XML Web Service that you access uses complex types, you should be familiar with how Perl handles hashes.
- How to read and understand Web Service Description Language (WSDL) files.
To edit a .NET-generated WSDL file so that it is useable by SOAP::Lite, follow these steps:
NOTE: If the WSDL was generated by the SOAP Toolkit version 2.0, this procedure is unnecessary.
- Obtain the WSDL file for the intended service and save it locally. With Active Server Pages (ASP) .NET, for example, you can do so by invoking the .asmx file with the "?WSDL" query string (that is, http://server/scripts/sample.asmx?WSDL). Alternatively, you can use the Disco.exe utility.
- Open the local copy of the WSDL file and edit the reference for the XML Namespace for xmlns:s in the definitions element. It originally resembles the following:
You should edit it as follows:
- Change all instances of elements that are prefixed with s: to be prefixed with xsd:. This reflects the change that you made in step 2.
- Remove all elements that involve the HTTP GET and HTTP POST messages, portTypes, bindings, and service ports.
$a = 45;
$b = 55;
print "Adding values ", $a, " and ", $b, "\n";
-> Add($a, $b);
To make sure that you completely understand the WSDL setup, you can use the Mssoapt.exe tool that ships with the Microsoft SOAP Toolkit version 2.0.
Article ID: 308438 - Last Review: Mar 24, 2009 - Revision: 1