Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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.

Cheers,

lin0


Comment on Re: Perl, SOAP and Java
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 Lite.pm 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('http://cms-test.pmic.com/startquote/form/RateCalculation +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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2015-07-08 07:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (96 votes), past polls