NAME
XML::Compile::SOAP11::Operation - defines a SOAP11 interaction
INHERITANCE
XML::Compile::SOAP11::Operation
is a XML::Compile::Operation
SYNOPSIS
# object created by XML::Compile::WSDL*
my $op = $wsdl->operation('GetStockPrices');
DESCRIPTION
Objects of this type define one possible SOAP11 interaction, either client side or server side.
METHODS
Constructors
XML::Compile::SOAP11::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.
Option --Defined in --Default
action XML::Compile::Operation undef
endpoints XML::Compile::Operation []
fault_def <undef>
input_def <undef>
kin XML::Compile::Operation <required>
nam XML::Compile::Operation <required>
output_def <undef>
schemas XML::Compile::Operation <required>
style 'document'
transport XML::Compile::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'
Accessors
$obj->action
$obj->bindingName
$obj->clientClass
$obj->endPoints
$obj->kind
$obj->name
$obj->portName
$obj->schemas
$obj->serverClass
$obj->serviceName
$obj->style
$obj->version
Handlers
$obj->compileClient(OPTIONS)
Returns one CODE reference which handles the processing for this operation. Options transporter
, transport_hook
, and endpoint
are passed to compileTransporter().
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.
Besides the OPTIONS listed, you can also specify anything which is accepted by XML::Compile::Schema::compile(), like sloppy_integers => 1
or hooks.
$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>
. callback => CODE
$obj->compileTransporter(OPTIONS)
Helpers
XML::Compile::SOAP11::Operation->register(URI, ENVNS)
SEE ALSO
This module is part of XML-Compile-SOAP distribution version 2.08, built on June 18, 2009. Website: http://perl.overmeer.net/xml-compile/
All modules in this suite: XML::Compile, XML::Compile::SOAP, XML::Compile::SOAP12, XML::Compile::SOAP::Daemon, XML::Compile::Tester, XML::Compile::Cache, XML::Compile::Dumper, XML::Rewrite, 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 life contact with other developers, visit the #xml-compile
channel on irc.perl.org
.
LICENSE
Copyrights 2007-2009 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