GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
XML::Compile::SOAP::Daemon::PSGI(3) User Contributed Perl Documentation XML::Compile::SOAP::Daemon::PSGI(3)
 

XML::Compile::SOAP::Daemon::PSGI - PSGI based application

 XML::Compile::SOAP::Daemon::PSGI
   is a XML::Compile::SOAP::Daemon
 XML::Compile::SOAP::Daemon::PSGI
   is a Plack::Component

 #### 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;

This 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.

Extends "METHODS" in XML::Compile::SOAP::Daemon.

Extends "Constructors" in XML::Compile::SOAP::Daemon.
XML::Compile::SOAP::Daemon::PSGI->new(%options)
 -Option            --Defined in                --Default
  accept_slow_select  XML::Compile::SOAP::Daemon  <true>
  output_charset      XML::Compile::SOAP::Daemon  'UTF-8'
  postprocess                                     undef
  preprocess                                      undef
  soap_action_input   XML::Compile::SOAP::Daemon  {}
  wsa_action_input    XML::Compile::SOAP::Daemon  {}
  wsa_action_output   XML::Compile::SOAP::Daemon  {}
    
accept_slow_select => BOOLEAN
output_charset => STRING
postprocess => CODE
When defined, the CODE will get called with a Plack::Request and Plack::Response objects after processing SOAP message.
preprocess => CODE
When defined, the CODE will get called with a Plack::Request object before processing SOAP message.
soap_action_input => HASH|ARRAY
wsa_action_input => HASH|ARRAY
wsa_action_output => HASH|ARRAY

Extends "Attributes" in XML::Compile::SOAP::Daemon.
$obj->addSoapAction(HASH|PAIRS)
Inherited, see "Attributes" in XML::Compile::SOAP::Daemon
$obj->addWsaTable( <'INPUT'|'OUTPUT'>, [HASH|PAIRS] )
Inherited, see "Attributes" in XML::Compile::SOAP::Daemon
$obj->outputCharset()
Inherited, see "Attributes" in XML::Compile::SOAP::Daemon

Extends "Running the server" in XML::Compile::SOAP::Daemon.
$obj->call($env)
Process the content of a single message. Not to be called directly.
$obj->process($client, $xmlin, $request, $action)
Inherited, see "Running the server" in XML::Compile::SOAP::Daemon
$obj->run(%options)
The same as to_app but accepts additional preprocess and postprocess options.
$obj->to_app()
Converts the server into a PSGI $app.

Extends "Preparations" in XML::Compile::SOAP::Daemon.
$obj->addHandler($name, $soap, CODE)
Inherited, see "Preparations" in XML::Compile::SOAP::Daemon
$obj->operationsFromWSDL($wsdl, %options)
Inherited, see "Preparations" in XML::Compile::SOAP::Daemon
$obj->setWsdlResponse( $filename, [$filetype] )
Inherited, see "Preparations" in XML::Compile::SOAP::Daemon

Extends "Helpers" in XML::Compile::SOAP::Daemon.
$obj->faultInvalidXML($error)
Inherited, see "Helpers" in XML::Compile::SOAP::Daemon
$obj->faultNotSoapMessage($nodetype)
Inherited, see "Helpers" in XML::Compile::SOAP::Daemon
$obj->faultUnsupportedSoapVersion($env_ns)
Inherited, see "Helpers" in XML::Compile::SOAP::Daemon
$obj->handlers( <'SOAP11'|'SOAP12'|$soap> )
Inherited, see "Helpers" in XML::Compile::SOAP::Daemon
$obj->printIndex( [$fh] )
Inherited, see "Helpers" in XML::Compile::SOAP::Daemon
$obj->soapVersions()
Inherited, see "Helpers" in XML::Compile::SOAP::Daemon

Extends "DETAILS" in XML::Compile::SOAP::Daemon.

Extends "Operation handlers" in XML::Compile::SOAP::Daemon.

Extends "Returning errors" in XML::Compile::SOAP::Daemon.

The 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.

[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};
  }

This module is part of XML-Compile-SOAP-Daemon distribution version 3.14, built on May 11, 2018. Website: http://perl.overmeer.net/CPAN/

Copyrights 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/
2018-05-10 perl v5.28.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.