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


Manual Reference Pages  -  XML::COMPILE::SOAP::DAEMON::LWPUTIL (3)

.ds Aq ’

NAME

XML::Compile::SOAP::Daemon::LWPutil - LWP helper routines

CONTENTS

INHERITANCE



 XML::Compile::SOAP::Daemon::LWPutil
   is a Exporter



SYNOPSIS



  # used by ::Daemon::NetServer
  #     and ::Daemon::AnyDaemon



DESCRIPTION

FUNCTIONS

<B>lwp_action_from_headerB>($request) Collect the soap action URI from the request, with undef on failure. Officially, the SOAPAction has no other purpose than the ability to route messages over HTTP: it should not be linked to the portname of the message (although it often can).
<B>lwp_add_headerB>($field, $content, ...)
<B>lwp_handle_connectionB>($connection, %options)
<B>lwp_http11_connectionB>($daemon, $socket) Initialize a HTTP/1.1 connect on the client $socket.
<B>lwp_make_responseB>( $request, $rc, $msg, $body, [$postproc] )
<B>lwp_run_requestB>( $request, $handler, [$connection, $postproc] ) Handle one $request (HTTP::Request object), which was received from the CLIENT (string). When the request has been received, the $handler is called. Returns the status, the status as text message, and the output as XML::LibXML::Document.
<B>lwp_socket_initB>($socket) Initialize LWP usage based on a created $socket.
<B>lwp_wsdl_responseB>( [$wsdlfile|$response] ) Set the result of WSDL query responses, either to a response which is created internally containing $wsdlfile, or to an already complete $response object (HTTP::Response). The response object is returned.

DETAILS

    Postprocessing responses

The LWP based daemons provide a postprocess option to their run() methods. The parameter is a CODE reference.

When defined, the CODE is called when the response message is ready to be returned to the client:



  $code->($request, $response, $status, \$body)



The source $requests is passed as first parameter. The $response is an HTTP::Response object, with all headers but without the body. The $status is the result code of the handler. A value of 200 (HTTP_OK from HTTP::Status) indicates successful processing of the request. When the status is not HTTP_OK you may skip the postprocessing.

The $body are the bytes which will be added as body to the response after this postprocessing has been done. You may change the body. <B>Be warnedB> that the body is not a (latin1 or utf-8) string but already encoded into a byte string.

SEE ALSO

This module is part of XML-Compile-SOAP-Daemon distribution version 3.11, built on January 14, 2015. Website: http://perl.overmeer.net/xml-compile/

Other distributions in this suite: XML::Compile, XML::Compile::SOAP, XML::Compile::WSDL11, XML::Compile::SOAP12, XML::Compile::SOAP::Daemon, XML::Compile::SOAP::WSA, XML::Compile::C14N, XML::Compile::WSS, XML::Compile::WSS::Signature, XML::Compile::Tester, XML::Compile::Cache, XML::Compile::Dumper, XML::Compile::RPC, XML::Rewrite 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-2015 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

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


perl v5.20.3 XML::COMPILE::SOAP::DAEMON::LWPUTIL (3) 2015-01-14

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