SOAP::Simple, just a hair simpler than SOAP::Lite, lots of the robustness as XML::Compile -- if it works for you it works, if it doesn't , watch the XML::Compile slides
#!/usr/bin/perl --
use Path::Class;
use constant THISFILE => file( __FILE__ )->absolute->stringify;
use constant THISDIR => file( THISFILE )->dir->stringify;
use strict;
use warnings;
use SOAP::Simple;
use Data::Dumper;
use autodie qw/ chdir /;
chdir THISFILE;
#~ http://search.cpan.org/~markov/XML-Compile-1.21/lib/XML/Compile/FAQ
+.pod
use Log::Report mode => 'DEBUG';
use LWP::Simple qw/ mirror /;
my $wsdlurl = 'https://10.16.47.116/Efiling/EfilingWS?wsdl';
my $wsdlfile = 'EfilingWS.wsdl';
-e $wsdlfile or mirror( $wsdlurl, $wsdlfile );
my $soap = SOAP::Simple->new( $wsdlfile );
my ($answer, $trace) = $soap->getOcscData(
Method => 'Person',
FirstName => 'Michael%',
Lastname => 'Smith%',
);
$trace->printRequest;
print Dumper($answer),"\n";
print Dumper($trace),"\n";
My soap tips (I hate soap), SOAP::Lite is too much work, SOAP::Simple is less work work ... its built on XML::Compile::SOAP/http://perl.overmeer.net/xml-compile/#doc , see my treasure trove of soap examples and lost knowledge,$soap->transport->add_handler("request_send", \&pp_dump );, http://cookbook.soaplite.com/
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.