=head1 NAME XML::Compile::Operation - base-class for possible interactions =head1 INHERITANCE XML::Compile::Operation is extended by XML::Compile::SOAP11::Operation =head1 SYNOPSIS # created by XML::Compile::WSDL11 my $op = $wsdl->operation('GetStockPrices'); =head1 DESCRIPTION These objects are created by L, grouping information about a certain specific message interchange between a client and a server. =head1 METHODS =head2 Constructors XML::Compile::Operation-EB(OPTIONS) =over 4 Option --Default action undef endpoints [] kin nam schemas transport 'HTTP' . action => STRING =over 4 Some string which is refering to the action which is taken. For SOAP protocols, this defines the soapAction header. =back . endpoints => ADDRESS|ARRAY =over 4 Where to contact the server. =back . kin => d =over 4 This returns the type of operation this is. There are four kinds, which are returned as strings C, C, C, and C. The latter two are initiated by a server, the former two by a client. =back . nam => e . schemas => XML::Compile::Cache . transport => URI|'HTTP' =over 4 C is short for C, which is a constant to indicate that transport should use the HyperText Transfer Protocol. =back =back =head2 Accessors $obj-EB =over 4 =back $obj-EB =over 4 =back $obj-EB =over 4 Returns the class name which implements the Client side for this protocol. =back $obj-EB =over 4 Returns the list of alternative URLs for the end-point, which should be defined within the service's port declaration. =back $obj-EB =over 4 =back $obj-EB =over 4 =back $obj-EB =over 4 =back $obj-EB =over 4 =back $obj-EB =over 4 Returns the class name which implements the Server side for this protocol. =back $obj-EB =over 4 =back $obj-EB =over 4 =back =head2 Handlers $obj-EB(OPTIONS) =over 4 Returns one CODE reference which handles the conversion from a perl data-structure into a request message, the transmission of the request, the receipt of the answer, and the decoding of that answer into a Perl data-structure. =back $obj-EB(OPTIONS) =over 4 Returns a code reference which translates in incoming XML message into Perl a data-structure, then calls the callback. The result of the callback is encoded from Perl into XML and returned. Option --Default callback . callback => CODE =back $obj-EB(OPTIONS) =over 4 Option --Default endpoint server undef transport_hook undef transporter . endpoint => URI =over 4 Overrule the destination address. =back . server => URI-HOST =over 4 Overrule only the server part in the endpoint, not the whole endpoint. This could be a string like C. Only used when no explicit C is provided. =back . transport_hook => CODE =over 4 Passed to L. Can be used to create off-line tests and last resort work-arounds. See the DETAILs chapter in the L manual page. =back . transporter => CODE =over 4 The routine which will be used to exchange the data with the server. This code is created by an L extension. By default, a transporter compatible to the protocol is created. However, in most cases you want to reuse one (HTTP1.1) connection to a server. =back =back =head2 Helpers XML::Compile::Operation-EB(URI, ENVNS) =over 4 Declare an operation type, but WSDL specific URI and envelope namespace. =back =head1 SEE ALSO This module is part of XML-Compile-SOAP distribution version 2.08, built on June 18, 2009. Website: F All modules in this suite: L, L, L, L, L, L, L, L, and L. Please post questions or ideas to the mailinglist at F For life contact with other developers, visit the C<#xml-compile> channel on C. =head1 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 F