|
NAMEXML::Compile::SOAP::Daemon::PSGI - PSGI based applicationINHERITANCEXML::Compile::SOAP::Daemon::PSGI is a XML::Compile::SOAP::Daemon XML::Compile::SOAP::Daemon::PSGI is a Plack::Component SYNOPSIS#### have a look in the examples directory! use XML::Compile::SOAP::Daemon::PSGI; my $daemon = XML::Compile::SOAP::Daemon::PSGI->new; # initialize definitions from WSDL my $wsdl = XML::Compile::WSDL11->new(...); $wsdl->importDefinitions(...); # more schemas $daemon->operationsFromWSDL($wsdl, callbacks => ...); # generate PSGI application my $app = $daemon->to_app; $app; DESCRIPTIONThis module handles the exchange of SOAP messages via PSGI stack, using Plack toolkit. This module was contributed by Piotr Roszatycki.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. Extends "DESCRIPTION" in XML::Compile::SOAP::Daemon. METHODSExtends "METHODS" in XML::Compile::SOAP::Daemon.ConstructorsExtends "Constructors" in XML::Compile::SOAP::Daemon.
AttributesExtends "Attributes" in XML::Compile::SOAP::Daemon.
Running the serverExtends "Running the server" in XML::Compile::SOAP::Daemon.
PreparationsExtends "Preparations" in XML::Compile::SOAP::Daemon.
HelpersExtends "Helpers" in XML::Compile::SOAP::Daemon.
DETAILSExtends "DETAILS" in XML::Compile::SOAP::Daemon.Operation handlersExtends "Operation handlers" in XML::Compile::SOAP::Daemon.Returning errorsExtends "Returning errors" in XML::Compile::SOAP::Daemon.How to use the PSGI moduleThe code and documentation for this module was contributed by Piotr Roszatycki in March 2012.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. Using Basic Authenication[example contributed by Emeline Thibault]my $daemon = XML::Compile::SOAP::Daemon::PSGI->new(...); $daemon->operationsFromWSDL($wsdl, callbacks => {...}); use Plack::Middleware::Auth::Basic; my %map = ( admin => "password" ); builder { enable "Auth::Basic", authenticator => \&cb; $daemon; }; sub cb { my ( $username, $password ) = @_; return $map{$username} && $password eq $map{$username}; } SEE ALSOThis module is part of XML-Compile-SOAP-Daemon distribution version 3.14, built on May 11, 2018. Website: http://perl.overmeer.net/CPAN/LICENSECopyrights 2007-2018 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/
Visit the GSP FreeBSD Man Page Interface. |