Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Any help would be appreciated very much!use SOAP::Lite; use strict; my $uri = "test_uri; my $proxy = "test_proxy"; my $service = SOAP::Lite ->uri($uri) ->proxy($proxy) ->on_action(sub{sprintf '%s/%s', @_ }); my $uname = "testuser"; my $pwd = "testpwd"; #my $username = SOAP::Data->name(username => $uname)->type('string')-> +uri($uri); #my $password = SOAP::Data->name(password => $pwd)->type('string')->ur +i($uri); my $username = dotnet_stuff("username", $uname); my $password = dotnet_stuff("password", $pwd); my $test = $service->Login($username, $password); print $test->result(); if($test->fault()) { my $error = join (', ', $test->faultcode, $test->faultstring); print "$error"; } sub dotnet_stuff { my $name = pop(@_); my $value = pop(@_); my $soap = SOAP::Data->name($name => $value)->type('string')->uri($ +uri); return $soap; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Subroutine Return?
by jeffa (Bishop) on Dec 19, 2003 at 22:49 UTC | |
by Anonymous Monk on Dec 20, 2003 at 19:35 UTC | |
|
Re: Subroutine Return?
by tachyon (Chancellor) on Dec 20, 2003 at 04:23 UTC | |
|
Re: Subroutine Return?
by eclark (Scribe) on Dec 20, 2003 at 00:06 UTC |