[Xml-compile] Ports and SOAP 1.2

Jason Purdy jason at journalistic.com
Thu Feb 11 21:00:55 GMT 2010


I'm a little over my head w/ this SOAP stuff, but I've used XML::Compile 
for one app and I'm branching out on another.

I'm trying to use the Network Solutions API:

http://ecomapi.networksolutions.com/

You can see their WSDL from the link on the top-right. I downloaded the 
WSDL and tried:

> my $wsdl = XML::Compile::WSDL11->new( 'ecomapi.wsdl' );

I do that line in the debugger and then try to inspect the results of 
the operations() method and I get this error:

> error: ports of type http://schemas.xmlsoap.org/wsdl/soap12/ not supported (not loaded?)

Later on, I call compileClient() and when I execute the client, I get 
this error:

> Can't call method "header" on unblessed reference at /usr/local/share/perl/5.10.0/XML/Compile/Transport/SOAPHTTP.pm line 196.
>  at /usr/local/share/perl/5.10.0/XML/Compile/Transport/SOAPHTTP.pm line 196
> 	XML::Compile::Transport::SOAPHTTP::__ANON__[/usr/local/share/perl/5.10.0/XML/Compile/Transport/SOAPHTTP.pm:199]('SCALAR(0x342dfa8)', 'ARRAY(0x21c2500)') called at /usr/local/share/perl/5.10.0/XML/Compile/Transport/SOAPHTTP.pm line 170
> 	XML::Compile::Transport::SOAPHTTP::__ANON__[/usr/local/share/perl/5.10.0/XML/Compile/Transport/SOAPHTTP.pm:188]('SCALAR(0x342dfa8)', 'HASH(0x342e1a0)', 'ARRAY(0x21c2500)') called at /usr/local/share/perl/5.10.0/XML/Compile/Transport.pm line 66
> 	XML::Compile::Transport::__ANON__[/usr/local/share/perl/5.10.0/XML/Compile/Transport.pm:96]('XML::LibXML::Document=SCALAR(0x313d968)', 'HASH(0x342e1a0)', 'ARRAY(0x21c2500)') called at /usr/local/share/perl/5.10.0/XML/Compile/SOAP/Client.pm line 63
> 	XML::Compile::SOAP::Client::__ANON__[/usr/local/share/perl/5.10.0/XML/Compile/SOAP/Client.pm:82]('Header', 'HASH(0x319f5c0)', 'UserKey', 'HASH(0x31a1a58)') called at ./import_store_subs.pl line 20

That leads me to believe the previous error is stopping the subsequent 
calls.

Is there some sort of constructor option or other module I should be using?

Thanks!

Jason



More information about the Xml-compile mailing list