XML::Compile::Transport::SOAPHTTP(3pm) | User Contributed Perl Documentation | XML::Compile::Transport::SOAPHTTP(3pm) |
XML::Compile::Transport::SOAPHTTP - exchange XML-SOAP via HTTP
XML::Compile::Transport::SOAPHTTP is a XML::Compile::Transport is a XML::Compile::SOAP::Extension
use XML::Compile::Transport::SOAPHTTP; my $http = XML::Compile::Transport::SOAPHTTP->new(@options); my $send = $http->compileClient(@options2); my $call = $wsdl->compileClient ( operation => 'some-port-name' , transport => $send ); my ($xmlout, $trace) = $call->($xmlin); $wsdl->compileCalls(transport => $send);
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.
Extends "DESCRIPTION" in XML::Compile::Transport.
Extends "METHODS" in XML::Compile::Transport.
Extends "Constructors" in XML::Compile::Transport.
If you need to change UserAgent settings (for instance at runtime), you can always directly access the internal "LWP::UserAgent" object via userAgent().
Warning: The "ssl_opts", "keep_alive" and "timeout" options are only used when an default internal "LWP::UserAgent" is created; this is only once in a program. Later instantiations of this ::SOAPHTTP will share that default agent, even though these passed parameters have different parameters. If that is not what you want, then pass your own "user_agent" object to the constructor to avoid the use of the default.
-Option --Defined in --Default address XML::Compile::Transport 'http://localhost' charset XML::Compile::Transport 'UTF-8' keep_alive <true> ssl_opts <undef> timeout 180 user_agent <created when needed>
Extends "WSDL11" in XML::Compile::Transport.
Extends "SOAP11" in XML::Compile::Transport.
Extends "SOAP12" in XML::Compile::Transport.
Extends "Accessors" in XML::Compile::Transport.
Changes to the agent configuration can be made before or after the compilation, or even inbetween SOAP calls.
Extends "Handlers" in XML::Compile::Transport.
-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
example: create a client
my $trans = XML::Compile::Transport::SOAPHTTP->new ( address => 'http://www.stockquoteserver.com/StockQuote' ); my $call = $trans->compileClient ( action => 'http://example.com/GetLastTradePrice' ); # $request and $answer are XML::LibXML trees! # see XML::Compile::SOAP::Client::compileClient() for wrapper which # converts from and to Perl data structures. my ($answer, $trace) = $call->($request); my $answer = $call->($request); # drop $trace info immediately
Extends "DETAILS" in XML::Compile::Transport.
Extends "Helpers" in XML::Compile::Transport.
This module is part of XML-Compile-SOAP distribution version 3.28, built on August 01, 2022. Website: http://perl.overmeer.net/CPAN/
Copyrights 2007-2022 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/
2022-08-04 | perl v5.34.0 |