Qore xml Module
1.6.0
|
The SoapClient module implements a SOAP client for Qore using WSDL, XSD, and SOAP support implemented in the WSDL module.
Create outgoing request messages by setting up a Qore data structure corresponding to the SOAP message. Exceptions will be thrown if either the outgoing or the response message do not corespond to the WSDL. The exceptions should be fairly verbose to allow you to quickly correct any mistakes.
This module provides the following classes:
This module requires the following modules which are also reexported to the program context:
Here is an example of how to use this module:
The SoapClient::constructor() takes named arguments in the form of a hash; valid arguments are:
"service"
: the name of the "service" to use (if more than 1 service is defined in the WSDL then this key is mandatory)"port"
: in case multiple port entries are found in the WSDL, give the one to be used here"url"
: to override the URL defined in the WSDL"headers"
: to override any HTTP headers sent in outgoing messages"event_queue"
: to set an I/O event queue on the HTTPClient"log"
: a closure or call reference taking a single string argument for informational logging"dbglog"
: a closure or call reference taking a single string argument for verbose technical debugging loggingAlso the following keys can be set to set HTTP options:
"connect_timeout"
"http_version"
"max_redirects"
"proxy"
"timeout"
SoapConnection::getConstructorInfo()
method as connection serialization is a much more elegant and maintainable solution (issue 3696)