in reply to Perl, SOAP and Java
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..stubmaker http://www.website.com/service?WSDL
Hope this helps!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";
|
|---|