[Xml-compile] What is $action in XML::Compile::Tester synopsis

Zbigniew Lukasiak zzbbyy at gmail.com
Mon Nov 24 12:36:06 GMT 2008


On Mon, Nov 24, 2008 at 1:28 PM, Mark Overmeer <mark at overmeer.net> wrote:
> * Zbigniew Lukasiak (zzbbyy at gmail.com) [081124 10:59]:
>> 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.
>
> XML::Compile::Tester is currently only simplifying testing of
> XML::Compile, not the ::SOAP or ::SOAP::Daemon.
>
> The pack_type() is often used in examples in the XML::Compile modules,
> and originates in XML::Compile::Util.
>
>> 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);
>
> $action means: portType, operation name.
>
>>  $tester->fromWSDL($wsdl);
>>  $tester->addCallback($action, \&get_stock_price);
>
> Did you have a look at the script in the example directory?

Which one?  I have not found any example using XML::Compile::Tester.

Only XML-Compile-SOAP-0.78 contains example directory and it contains:
zl at perl:~/tmp/XML-Compile-SOAP-0.78> find examples/
examples/
examples/wssecurity
examples/wssecurity/README
examples/wssecurity/security.pm
examples/namesservice
examples/namesservice/has_schema.pl
examples/namesservice/rpc-literal.pl
examples/namesservice/has_wsdl2.pl
examples/namesservice/README
examples/namesservice/has_wsdl.pl
examples/namesservice/rpc-literal2.pl
examples/namesservice/has_schema2.pl
examples/namesservice/rpc-encoded2.pl
examples/namesservice/namesservice.xsd
examples/namesservice/rpc-encoded.pl
examples/namesservice/namesservice.wsdl
zl at perl:~/tmp/XML-Compile-SOAP-0.78>

but they don't use the Tester.


-- 
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
http://perlalchemy.blogspot.com/



More information about the Xml-compile mailing list