OpenFrame::Server::SOAP - Provide SOAP access to OpenFrame
# in the server: use OpenFrame::Server::SOAP; my $h = OpenFrame::Server::SOAP->new(port => 8010); $h->handle(); # in the client: use SOAP::Lite +autodispatch => uri => 'http://localhost:8010/', proxy => 'http://localhost:8010/'; my $url = "http://localhost/myapp/?param=5"; my $cookietin = OpenFrame::AbstractCookie->new(); my $direct = OpenFrame::Server::Direct->new(); my $response; ($response, $cookietin) = $direct->handle($url, $cookietin); if ($response->code() == ofOK) { print $response->message() . "\n"; } else { print "Some sort of error. Drat.\n"; }
OpenFrame::Server::SOAP provides a SOAP server which gives access to an OpenFrame application. The port that the SOAP server listens on is set by the value of the "port" key in the configuration, although it defaults to port 8010.
OpenFrame::Server::SOAP
File upload is not yet supported via SOAP.
Leon Brocard <leon@fotango.com>
To install OpenFrame, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenFrame
CPAN shell
perl -MCPAN -e shell install OpenFrame
For more information on module installation, please visit the detailed CPAN module installation guide.