Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: How to use Perl instead of Coldfusion.

by Anonymous Monk
on May 14, 2013 at 07:03 UTC ( #1033427=note: print w/replies, xml ) Need Help??

in reply to How to use Perl instead of Coldfusion.

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; #~ +.pod use Log::Report mode => 'DEBUG'; use LWP::Simple qw/ mirror /; my $wsdlurl = ''; 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/ , see my treasure trove of soap examples and lost knowledge,$soap->transport->add_handler("request_send", \&pp_dump );,

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1033427]
[Discipulus]: sorry, not able to help erix.. ;=(
[erix]: I guess I'll stare it down in the end but I'm already staring for a while... :)
[erix]: btw, I had a typo in there, so reload (if anyone is looking)

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2018-01-19 08:15 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (216 votes). Check out past polls.