XML::Compile::WSDL11 - accessing the transport layer

Toby Corkindale tjc at wintrmute.net
Fri Apr 11 03:08:39 BST 2008


I'm using XML::Compile::WSDL11 to generate some SOAP services, but I want to
get access to the LWP::UserAgent object.. to do that I need to get the
XML::Compile::Transport::SOAPHTTP object, but it's eluding me on the correct
incantations to retrieve it from the X-C-WSDL11 object.

Can anyone help me with the missing step here?

my $wsdl = slurp('service.wsdl');
my $service = XML::Compile::WSDL11->new($wsdl);
my $transport = $service->????; # <---
my $ua = $transport->userAgent;
my $call = $service->compileClient('MyService', port => 'MyPort');
$call->( answer => 42 );

Cheers,
Toby


More information about the london.pm mailing list