[Xml-compile] What is $action in XML::Compile::Tester synopsis
Zbigniew Lukasiak
zzbbyy at gmail.com
Mon Nov 24 10:59:15 GMT 2008
Hi,
XML::Compile::Tester looks very useful - but unfortunately I cannot
figure out it's interface.
The synopsis says:
my $action = pack_type $my_ns, 'GetStockPrice';
sub get_stock_price(@) {...}
But I cannot find out what should be there in the $my_ns variable -
nor any reference documentation for pack_type. So eventually I have
no idea what this $action variable represents. And it is then needed
for the test calls:
my $wsdl = XML::Compile::WSDL11->new('my_wsdl.xml');
my $call = $wsdl->compileClient($action);
$tester->fromWSDL($wsdl);
$tester->addCallback($action, \&get_stock_price);
By the way the Server and Client interfaces don't take this parameter:
$deamon->operationsFromWSDL($wsdl, handlers => ...);
--
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
http://perlalchemy.blogspot.com/
More information about the Xml-compile
mailing list