Perl: the Markov chain saw | |
PerlMonks |
SOAP::Lite:Java vs Perlby mrguy123 (Hermit) |
on May 26, 2008 at 12:47 UTC ( [id://688516]=perlquestion: print w/replies, xml ) | Need Help?? |
mrguy123 has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks, I am trying to retrieve data from a web server using a SOAP API. Unfortunately, all the examples are in Java :( In the past I have managed to translate Java SOAP requests to Perl using SOAP::Lite, but I am quite stuck this time These are the SOAP functions in Java: I haven't used Java for a while, but it seems that you need to connect the the WSDL page, create a "session" object, and then send it as input to a one of the SOAP functions. I tried doing the same in Perl, using a hash instead of an object: When I run this program, I get this XML message: I'm not sure exactly what this means,but my guess is that the Server tries to use the XML to create an object and fails. I tried using a Perl Module instead of a hash as the "session" object but with the same results. Right now, if you run this and look at the XML that is created, all the parameters from the hash are sent. It should be OK, but something is missing. The bottom line is that I seem to need an object in Perl that is bit more similar to an object in Java for the XML. Any suggestions? Thanks, Guy Naamati (mrguy123) For the children, they mark, and the children, they know The place where the sidewalk ends. --Shel Silverstein
Back to
Seekers of Perl Wisdom
|
|