use vars qw(@ISA);
@ISA = qw(Exporter SOAP::Server::Parameters);
The additional variable allows access to the envelope which has a whole load of useful stuff in there including access to the request. And access to the request can be done like in the following example
sub mymethod{
my $envelope = pop(@_);
my $sample_id = $envelope->dataof("//sample_id")->value if(defined
+ $envelope->dataof("//sample_id"));
my $match_id = $envelope->dataof("//match_id")->value if(defined $
+envelope->dataof("//match_id"));
}
This is great as that means I can do my own verifying of the request data.
Thanks again for the pointer.
|