Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Perl, SOAP and Java

by cengineer (Pilgrim)
on May 24, 2007 at 22:15 UTC ( #617356=note: print w/replies, xml ) Need Help??

in reply to Perl, SOAP and Java

I used stubmaker to create a perl module with the available soap calls:
Put this perl module in /etc/perl or whereever you put your perl modules for inclusion on your system. The code is pretty basic. Read the contents of a file that you want to post to the service. Post it. Get the response. Print the response..
use strict; use warnings; use MySOAPService qw(:all); # Data file my $dataFile = "/path/to/dataToPost.xml"; # Open our input file open(INFILE, $dataFile) or die "Could not open $dataFile: $!\n"; # Set our variable to read contents of our input file my $postData = do { local $/; <INFILE> }; # Close our input file close(INFILE); # Get a response from the post data my $response = soapCallFromWSDLModule($postData); print "Response from server: $response\n";
Hope this helps!

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2023-12-07 13:20 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (32 votes). Check out past polls.