XML::Compile::SOAP12::Operation - defines a SOAP12 interaction
XML::Compile::SOAP12::Operation is a XML::Compile::SOAP::Operation
### Don't use this (yet!!!) not completed!!! # object created by XML::Compile::WSDL* my $op = $wsdl->operation('GetStockPrices');
Objects of this type define one possible SOAP12 interaction, either client side or server side.
XML::Compile::SOAP12::Operation->new(OPTIONS)
input_def, output_def and fault_def are HASHes which contain the input and output message header, body and fault-header definitions in WSDL1.1 style.
input_def
output_def
fault_def
Option --Defined in --Default action XML::Compile::SOAP::Operation undef endpoints XML::Compile::SOAP::Operation [] fault_def <undef> input_def <undef> kin XML::Compile::SOAP::Operation <required> nam XML::Compile::SOAP::Operation <required> output_def <undef> schemas XML::Compile::SOAP::Operation <required> style 'document' transport XML::Compile::SOAP::Operation 'HTTP'
. action => STRING
. endpoints => ADDRESS|ARRAY
. fault_def => HASH
. input_def => HASH
. kin => d
. nam => e
. output_def => HASH
. schemas => XML::Compile::Cache
. style => 'document'|'rpc'
. transport => URI|'HTTP'
$obj->bindingName
See "Accessors" in XML::Compile::SOAP::Operation
$obj->clientClass
$obj->endPoints
$obj->kind
$obj->name
$obj->portName
$obj->schemas
$obj->serverClass
$obj->serviceName
$obj->soapAction
$obj->style
$obj->version
$obj->wsaAction('INPUT'|'OUTPUT')
$obj->compileClient(OPTIONS)
Returns one CODE reference which handles the processing for this operation. Options transporter, transport_hook, and endpoint are passed to compileTransporter().
transporter
transport_hook
endpoint
You pass that CODE reference an input message of the correct type, as pure Perl HASH structure. An 'request-response' operation will return then answer, or undef in case of failure. An 'one-way' operation with return undef in case of failure, and a true value when successfull.
undef
Besides the OPTIONS listed, you can also specify anything which is accepted by XML::Compile::Schema::compile(), like sloppy_integers => 1 or hooks.
sloppy_integers => 1
$obj->compileHandler(OPTIONS)
Prepare the routines which will decode the request and encode the answer, as will be run on the server. The XML::Compile::SOAP::Server will connect these.
Option --Default callback <required> selector <from input def>
. callback => CODE
. selector => CODE
Determines whether the handler belongs to a received message.
$obj->compileTransporter(OPTIONS)
See "Handlers" in XML::Compile::SOAP::Operation
$obj->explain(WSDL, FORMAT, DIRECTION, OPTIONS)
Dump an annotated structure showing how the operation works, helping developers to understand the schema. FORMAT is always PERL: XML is not yet supported.
PERL
XML
The DIRECTION is INPUT, it will return the message which the client sends to the server (input for the server). The OUTPUT message is sent as response by the server.
INPUT
OUTPUT
All OPTIONS besides those described here are passed to XML::Compile::Schema::template(), when recurse is enabled.
recurse
Option --Default recurse <false> skip_header <false>
. recurse => BOOLEAN
Append the templates of all the part structures.
. skip_header => BOOLEAN
XML::Compile::SOAP12::Operation->register(URI, ENVNS)
See "Helpers" in XML::Compile::SOAP::Operation
This module is part of XML-Compile-SOAP12 distribution version 2.02, built on November 09, 2010. Website: http://perl.overmeer.net/xml-compile/
Other distributions in this suite: XML::Compile, XML::Compile::SOAP, XML::Compile::SOAP12, XML::Compile::SOAP::Daemon, XML::Compile::SOAP::WSA, XML::Compile::Tester, XML::Compile::Cache, XML::Compile::Dumper, XML::Compile::RPC, XML::Rewrite, XML::eXistDB, and XML::LibXML::Simple.
Please post questions or ideas to the mailinglist at http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile For live contact with other developers, visit the #xml-compile channel on irc.perl.org.
#xml-compile
irc.perl.org
Copyrights 2009-2010 by Mark Overmeer. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html
To install XML::Compile::SOAP12, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Compile::SOAP12
CPAN shell
perl -MCPAN -e shell install XML::Compile::SOAP12
For more information on module installation, please visit the detailed CPAN module installation guide.