in reply to convert SOAP message to perl data structure
Here 'Temperatures' is the namespace (url before is ignored), 'http://services.soaplite.com/temper.cgi' is the URL of the remote script, f2c is the name of the method called, 32 is data the method accepts. In this case the data returned by server is one scalar and is converted to perl scalar type on the fly. Usually you know what kind of data the server returns, and many types are automatically converted to Perl data structures.use SOAP::Lite; print SOAP::Lite -> uri('http://www.soaplite.com/Temperatures') -> proxy('http://services.soaplite.com/temper.cgi') -> f2c(32) -> result;
At first adapt the example script to fit your needs (all parameters marked italic need to be replaced with your ones!) and try to find out which data is returned from server. Data::Dumper can help you if you have no suggestions about it :) And if you fail, try to ask here a less general question.
|
|---|