XML::Compile::Transport::SOAPHTTP_AnyEvent - exchange XML via AnyEvent::HTTP
XML::Compile::Transport::SOAPHTTP_AnyEvent is a XML::Compile::Transport is a XML::Compile::SOAP::Extension
use XML::Compile::Transport::SOAPHTTP_AnyEvent; my $http = XML::Compile::Transport::SOAPHTTP_AnyEvent->new(@options); my $send = $http->compileClient(@options2); my $call = $wsdl->compileClient ( operation => 'some-port-name' , transport => $send , async => 1 # required! ); sub handler { my ($xmlout, $trace) = @_; # so something }; $call->($xmlin, _callback => \&handler);
This module handles the exchange of (XML) messages, according to the rules of SOAP (any version). The module does not known how to parse or compose XML, but only worries about the HTTP aspects.
In contrairy to XML::Compile::Transport::SOAPHTTP, this implementation can be used in various event-driven environments, via AnyEvent::HTTP.
Extends "DESCRIPTION" in XML::Compile::Transport.
Extends "METHODS" in XML::Compile::Transport.
Extends "Constructors" in XML::Compile::Transport.
-Option --Defined in --Default address XML::Compile::Transport 'http://localhost' any_event_params [] charset XML::Compile::Transport 'UTF-8'
Options passed to AnyEvent::HTTP, for instance timeout and proxy. The ARRAY is a list of PAIRS.
timeout
proxy
Extends "WSDL11" in XML::Compile::Transport.
Inherited, see "WSDL11" in XML::Compile::SOAP::Extension
Extends "SOAP11" in XML::Compile::Transport.
Inherited, see "SOAP11" in XML::Compile::SOAP::Extension
Extends "SOAP12" in XML::Compile::Transport.
Inherited, see "SOAP12" in XML::Compile::SOAP::Extension
Extends "Accessors" in XML::Compile::Transport.
Inherited, see "Accessors" in XML::Compile::Transport
Extends "Handlers" in XML::Compile::Transport.
Compile an HTTP client handler. Returned is a subroutine which is called with a text represenation of the XML request, or an XML::LibXML tree. In SCALAR context, an XML::LibXML parsed tree of the answer message is returned. In LIST context, that answer is followed by a HASH which contains trace information.
-Option --Defined in --Default action '' header <created> hook XML::Compile::Transport <undef> kind 'request-response' method 'POST' mime_type <depends on soap version> mpost_id 42 soap 'SOAP11' xml_format XML::Compile::Transport 0
Versions of XML::Compile, XML::Compile::SOAP, and LWP will be added to simplify bug reports.
What kind of interactie, based on the four types defined by WSDL(1): notification-operation (server initiated, no answer required), one-way (client initiated, no answer required), request-response (client initiated, the usual in both directions), solicit-response (server initiated "challenge").
notification-operation
one-way
request-response
solicit-response
With POST, you get the standard HTTP exchange. The M-POST is implements the (Microsoft) HTTP Extension Framework. Some servers accept both, other require a specific request.
POST
M-POST
With method M-POST, the header extension fields require (any) number to be grouped.
Adds some lines about module versions, which may help debugging or error reports. This is called when a new client or server is being created.
Extends "DETAILS" in XML::Compile::Transport.
Extends "Helpers" in XML::Compile::Transport.
Inherited, see "Helpers" in XML::Compile::Transport
This module is part of XML-Compile-SOAP-AnyEvent distribution version 0.91, built on January 15, 2020. Website: http://perl.overmeer.net/xml-compile/
Copyrights 2010-2020 by [Mark Overmeer <markov@cpan.org>]. 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://dev.perl.org/licenses/
To install XML::Compile::SOAP::AnyEvent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Compile::SOAP::AnyEvent
CPAN shell
perl -MCPAN -e shell install XML::Compile::SOAP::AnyEvent
For more information on module installation, please visit the detailed CPAN module installation guide.