Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Don't bother hand-constructing complex types using SOAP::Data.
Instead use SOAP::WSDL (a subclass of SOAP::Lite) to talk to the web-service. It reads the service's WSDL and constructs a proxy object whose methods are able to marshal pure-perl datastructures to and from the web-service. It's otherwise like SOAP::Lite so you can skip straight to the 'USAGE' section of the documentation. As with SOAP::Lite (and not mentioned in SOAP::WSDL's docs) you can use $proxy->method(...) instead of $proxy->call('method'...) Updated: I don't know the specifics of your complexTypes, but you can use something like the following code. Also you likely don't need to specify namespaces as that should be dealt with by SOAP::WSDL.
Note that the arguments to the method are determined positionally, and that you needn't construct a real Tester object (although if the Tester object you pass is a blessed hash, it doesn't hurt). Also, please remember to use <code>...</code> tags when you post code so that it's easier for your fellow monks to read your post. -David In reply to Re: Calling .NET based service using SOAP::Lite for Perl
by erroneousBollock
|
|