NAME
XML::Compile::SOAP::Daemon::CGI - CGI based server
INHERITANCE
XML::Compile::SOAP::Daemon::CGI
is a XML::Compile::SOAP::Daemon
SYNOPSIS
#### have a look in the examples directory!
use XML::Compile::SOAP::Daemon::CGI;
my $daemon = XML::Compile::SOAP::Daemon::CGI->new;
# daemon definitions from WSDL
my $wsdl = XML::Compile::WSDL11->new(...);
$wsdl->importDefinitions(...); # more schemas
$daemon->operationsFromWSDL($wsdl, callbacks => ...);
DESCRIPTION
This module handles the exchange of SOAP messages via Apache, using the popular Perl module CGI.
This abstraction level of the object (code in this pm file) is not concerned with parsing or composing XML, but only worries about the HTTP transport specifics of SOAP messages.
METHODS
Constructors
- XML::Compile::SOAP::Daemon::CGI->new(OPTIONS)
-
-Option --Defined in --Default accept_slow_select XML::Compile::SOAP::Daemon <true> output_charset XML::Compile::SOAP::Daemon 'UTF-8' soap_action_input XML::Compile::SOAP::Daemon {} wsa_action_input XML::Compile::SOAP::Daemon {} wsa_action_output XML::Compile::SOAP::Daemon {}
Attributes
- $obj->addSoapAction(HASH|PAIRS)
- $obj->addWsaTable(('INPUT'|'OUTPUT'), [HASH|PAIRS])
- $obj->outputCharset
Running the server
Preparations
- $obj->addHandler(NAME, SOAP, CODE)
- $obj->operationsFromWSDL(WSDL, OPTIONS)
- $obj->setWsdlResponse(FILENAME)
Helpers
- $obj->faultInvalidXML(ERROR)
- $obj->faultNotSoapMessage(NODETYPE)
- $obj->faultUnsupportedSoapVersion(ENV_NS)
- $obj->handlers(('SOAP11'|'SOAP12'|SOAP))
- $obj->printIndex([FILEHANDLE])
- $obj->soapVersions
DETAILS
Operation handlers
Returning errors
Returning general errors
Returning private errors
How to use this CGI module
Configuring
Go to the examples/mod_perl/ directory which is included in the distribution of this module, XML::Compile::SOAP::Daemon. There you find a README describing the process.
The code and documentation for this module was contributed by Patrick Powell in December 2010. Both have seen major changes since.
SEE ALSO
This module is part of XML-Compile-SOAP-Daemon distribution version 3.00, built on April 15, 2011. Website: http://perl.overmeer.net/xml-compile/
Other distributions in this suite: XML::Compile, XML::Compile::SOAP, XML::Compile::SOAP12, XML::Compile::SOAP::Daemon, XML::Compile::SOAP::WSA, XML::Compile::SOAP::WSS, XML::Compile::Tester, XML::Compile::Cache, XML::Compile::Dumper, XML::Compile::RPC, XML::Rewrite, XML::eXistDB, and XML::LibXML::Simple.
Please post questions or ideas to the mailinglist at http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile For live contact with other developers, visit the #xml-compile
channel on irc.perl.org
.
LICENSE
Copyrights 2007-2011 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