Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Perl, SOAP and Java

by lin0 (Curate)
on May 24, 2007 at 21:44 UTC ( #617345=note: print w/replies, xml ) Need Help??

in reply to Perl, SOAP and Java

Hi darkwater23,

You could have a look at:

Ask the magic eight ball: In this article, Doug Tidwell takes a simple piece of Java code, deploys it as a Web service, and writes a few clients for it.



Replies are listed 'Best First'.
Re^2: Perl, SOAP and Java
by darkwater23 (Initiate) on May 29, 2007 at 18:37 UTC

    Ok, update for all!

    I found the problem. The SOAP response contains an element named 'xmlStr'. The Perl module dies because this is invalid, according to the XML spec. The author of the module suggested that one could comment out lines 1084 and 1085 in the file, though it was not recommended. This allowed processing of the response to continue.

    My test script ended up not needing the SOAP::WSDL part. A boiled down version looks like this:

    use SOAP::Lite; my $result = SOAP::Lite -> service(' +sService.wsdl') ->getQuote('<passed in the xml doc containing the parameters for the + request as a string>'); $result =~ m~<TOTALMODALPREMIUM>(.+?)</TOTALMODALPREMIUM>~ig; my $quote = $1;

    I hope this helps someone else!

    Some people are like Slinkies. Not really good for anything, but you still can't help but smile when you see one tumble down the stairs.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://617345]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2020-06-07 09:53 GMT
Find Nodes?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?

    Results (42 votes). Check out past polls.