The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

XML::Compile::SOAP::Client - SOAP message initiators

INHERITANCE

 XML::Compile::SOAP::Client is extended by
   XML::Compile::SOAP11::Client
   XML::Compile::SOAP12::Client

SYNOPSIS

 # never used directly, only via XML::Compile::SOAP1[12]::Client

DESCRIPTION

This class defines the methods that each client side of the SOAP message exchange protocols must implement.

METHODS

Constructors

This object can not be instantiated, but is only used as secundary base class. The primary must contain the new.

Single messages

$obj->compileClient(OPTIONS)

    Combine sending a request, and receiving the answer. In LIST context, both the decoded answer, as a HASH with various trace information is returned. In SCALAR context, only the answer is given.

     Option   --Default
     kind       'request-response'
     request    <required>
     response   <required>
     transport  <required>

    . kind => STRING

      Four kinds of message exchange are defined in WSDL terminology: request-response, notification-operation, one-way, and solicit-response. Only the first one is supported on the moment.

    . request => CODE

    . response => CODE

    . transport => CODE

Debugging

$obj->fakeServer([FAKE|undef])

XML::Compile::SOAP::Client->fakeServer([FAKE|undef])

    Returns the fake server, if defined: it will be called to simulate an external SOAP server. Use this for debugging and regression test scripts.

    Usually, you should set your own FAKE server, but simply instantiate a XML::Compile::SOAP::Tester object.

    BE WARNED: this FAKE server must be instantiated before the SOAP client handlers are compiled.

SEE ALSO

This module is part of XML-Compile-SOAP distribution version 0.62, built on November 19, 2007. Website: http://perl.overmeer.net/xml-compile/

LICENSE

Copyrights 2007 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