Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am not quite sure where I've gone wrong on this and would be grateful for some help before moving on any further. Ultimately I'm trying to pass on a username#!c:\perl\bin\perl.exe use strict; use warnings; use SOAP::Transport::HTTP; use CGI; use Carp; SOAP::Transport::HTTP::CGI ->dispatch_to('emailfind') ->handle; my $cgi = new CGI; package emailfind; sub findingit { my $cgi = shift; #croak "Error: cgi object not passed" if(!$cgi); my $cookie = $cgi->cookie('WALOGIN'); return if (!$cookie || $cookie eq 'RESET'); #exit function if co +okie empty or is RESET my ($e) = split(/-/, $cookie); my $email= pack("H*",$e); # decode email address return $email; }
Many thanks for any pointers.#!c:\perl\bin\perl.exe use warnings; use SOAP::Lite; my $soap = SOAP::Lite ->uri('http://localhost/emailfind') ->proxy('http://localhost/cgi-bin/soapdish.pl'); unless ($soap->fault) { print $soap->findingit(); } else { print join ', ', $soap->faultcode, $soap->faultstring, $soap->faultdetail; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Creating SOAP client to pass data to Java
by shmem (Chancellor) on Jan 02, 2008 at 21:19 UTC | |
by Anonymous Monk on Jan 03, 2008 at 14:02 UTC |