Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^6: Problem SOAP-Lite

by Anonymous Monk
on Dec 21, 2009 at 20:53 UTC ( #813762=note: print w/ replies, xml ) Need Help??


in reply to Re^5: Problem SOAP-Lite
in thread Problem SOAP-Lite

Hi,

Below is the code snippet I am using but getting 404 not found

#!c:\perl\bin\perl.exe use strict; use SOAP::Lite; my $user=shift; my $password=shift; my $protocol="http"; my $server="servername"; my $methodName="methodname"; my $endpoint="$protocol://$user:$password@".$server."/services/service +name"; my $client = SOAP::Lite->uri('URI here')->proxy($endpoint); open (ENV, ">envelop.xml") || die "Cannot open file for writing\n"; print ENV SOAP::Serializer->envelope(method=>$methodName); close (ENV); my $result=$client->call($methodName)->result; print "$result\n"; if ($client->call->fault) { open (ERR, ">>errfile.txt") || die "Cannot open errFile for append +ing\n"; print ERR "Oops! We got an error: ".$client->call->faultstring."\n +"; print "Oops! We got an error: ".$client->call->faultstring."\n"; close ERR; }

Thanks


Comment on Re^6: Problem SOAP-Lite
Download Code
Re^7: Problem SOAP-Lite
by ikegami (Pope) on Dec 23, 2009 at 00:08 UTC
    You sure $user:$password@ is supported?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://813762]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2015-07-01 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (10 votes), past polls