Menu

#1 Pass additional parameters to handle()

open
nobody
5
2002-11-21
2002-11-21
Byrne Reese
No

In the following code sample:

use SOAP::Transport::HTTP;

SOAP::Transport::HTTP::CGI
->dispatch_to('SessionReport')
->handle();

BEGIN {
package SessionReport;
use strict;
use vars qw(@ISA);
@ISA = qw(SOAP::Server::Parameters);
sub getSessionReport {
my $self = shift;
my $envelope = pop;
# do my thing
# Where can I get a handle to the HTTP layer from here?
}
}

<b>Notice the comments. Alternatively, it would be cool
if the cgi at the top level could pass additional
parameters into the subroutine handling the
request.</b> For example:

SOAP::Transport::HTTP::CGI
->dispatch_to('SessionReport')
->handle("foo","bar");

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.