Hi Monks!
I am testing a Perl code to connect and retrieve data using "SOAP::WSDL" but no matter what I try I am getting these warnings:
found unrecognised attribute {http://www.w3.org/2006/05/addressing/wsd
+l}Action (ignored) at /usr/local/share/perl5/SOAP/WSDL/Base.pm line 1
+30.
found unrecognised attribute {http://www.w3.org/2006/05/addressing/wsd
+l}Action (ignored) at /usr/local/share/perl5/SOAP/WSDL/Base.pm line 1
+30.
found unrecognised attribute {http://www.w3.org/2006/05/addressing/wsd
+l}Action (ignored) at /usr/local/share/perl5/SOAP/WSDL/Base.pm line 1
+30.
found unrecognised attribute {http://www.w3.org/2006/05/addressing/wsd
+l}Action (ignored) at /usr/local/share/perl5/SOAP/WSDL/Base.pm line 1
+30.
and here is the Perl code I am using:
#!/usr/bin/perl -w
use strict;
#use SOAP::Lite; # +trace=>"debug"; # commented for testing
use Data::Dumper;
use SOAP::WSDL;
use XML::Simple;
my %data = (
'inXML' => "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoa
+p.org/soap/envelope/\" xmlns:xsd=\"http://pw_b1rws2.wsbeans.iseries/x
+sd\">
<soapenv:Header/>
<soapenv:Body>
<xsd:getinfo_XML>
<xsd:args0>
<xsd:GETID>MYACCOUNT 1234567 2013 </xsd
+:GETID>
</xsd:args0>
</xsd:getinfo_XML>
</soapenv:Body>
</soapenv:Envelope>"
);
my $soap = SOAP::WSDL->new(
wsdl => 'http://xxx.xxx.x.xxx:100XX/web/services/IBM?wsdl',
);
my $result = $soap->call('getinfo_XML', %data);
#print Dumper $result;
open( XML, '>', 'results.xml' ) or die "Couldn't open";
print XML $result->result();
close XML;
# create object
my $xml = new XML::Simple;
# read XML file
my $data = $xml->XMLin("results.xml");
# print output
print Dumper($data);
If anyone has done anything like that or had a similar issue like this one, it would be nice to let meknow how it got solved!
Thanks!
-
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.
|