Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Problem with SOAP::Lite

by Anonymous Monk
on Oct 05, 2011 at 14:56 UTC ( #929822=note: print w/ replies, xml ) Need Help??


in reply to Problem with SOAP::Lite

See SOAP::Lite - Insecure dependency in eval while running with -T

Without taint, I get a java.lang.NullPointerException

#!/usr/local/bin/perl -- use strict; use warnings; use SOAP::Lite; use SOAP::Lite +trace => [ transport => \&pp_dump, ]; my $service = SOAP::Lite->service( q{http://xml.nig.ac.jp/wsdl/GetEntry.wsdl}); my $result = $service->getFASTA_CDSEntry("BN000101"); print $result; sub pp { use XML::Twig; open my($fh), '>', \my $str; no warnings 'newline'; XML::Twig->new(qw! pretty_print record !)->xparse(@_)->print( $fh +); return $str; } sub pp_dump { my $content = $_[0]->content(''); $_[0]->content( pp($content) ); print $_[0]->as_string,"\n"; return; } __END__


Comment on Re: Problem with SOAP::Lite
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2015-07-05 06: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 (60 votes), past polls