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  -  SOAP::TRANSPORT::HTTP::CGI (3)

.ds Aq ’

NAME

SOAP::Transport::HTTP::CGI - Generic SOAP CGI handler

CONTENTS

SYNOPSIS

Use this class to expose SOAP endpoints using vanilla CGI. Here’s an example SOAP endpoint exposed using this class:



    package ServerDemo;
    use strict;
    use SOAP::Transport::HTTP::CGI;

    sub handler {
        my $safe_classes = {
            Calculator => undef,
        };
      SOAP::Transport::HTTP::CGI->handler($safe_classes);
    }

    1;



(I leave it up to you to figure out how to get Perl scripts to run as CGI scripts - please see your Perl docs for details)

DESCRIPTION

This class encapsulates the details of hooking up to CGI, and then calls SOAP::Transport::HTTP::Server to do the SOAP-specific stuff. This way the Server class can be reused with any web server configuration (including mod_perl), by simply composing it with a different front-end (for instance, SOAP::Transport::HTTP::Apache, for instance.

    handler(SafeClassHash, OptionalDispatcher)

This is the only method on the class, and you must pass a hash reference whose keys contain the collection of classes that may be invoked at this endpoint. If you specify class FooBar in this list, for instance, and a client sends a SOAP request to http://yourserver/soap?class=FooBar, then the SOAP::Transport::HTTP::Server class will eventually attempt to load FooBar.pm, instatiate a FooBar, and call its handle_request function (see SOAP::Transport::HTTP::Server for more detail). If you don’t include a class in this hash, SOAP/Perl won’t run it. I promise.

By the way, only the keys in this hash are important, the values are ignored.

Also, nothing is stopping you from messing around with the response yourself if you’d like to add some headers or whatever; you can always call print() dump more headers to STDOUT. Just make sure you finish what you’re doing before you return to SOAP::Transport::HTTP::Server, because at that point the response is marshaled and sent back.

See SOAP::Transport::HTTP::Server for details on the OptionalDispatcher parameter.

DEPENDENCIES

SOAP::Transport::HTTP::Server

AUTHOR

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


perl v5.20.3 SOAP::TRANSPORT::HTTP::CGI (3) 2000-09-05

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