Could use some help getting started with SOAP::Lite
Edwin de Graaf <[email protected]> Fri, 22 Aug 2003 13:54:47 +0200
| Newsgroups | gmane.comp.windows.devel.soap.general |
|---|---|
| Message-ID | <703565632.1061560487@[192.168.181.146]> |
Hi all,
I am just starting to work with SOAP::Lite trying to connect to
an IIS server with the MicroSoft SOAP Toolkit, and I am having
trouble using the right namespace. I have a working piece of PHP
code (using nuSOAP) and I would love to see that translated to
SOAP::Lite so I can see the correct way to do this. The PHP code
is the following:
$soapclient = new
soapclient("http://192.168.1.2/soap/prism.ASP");
$soapclient->soap_defencoding='UTF-8';
$soapclient->setCredentials($USER,$PASSWORD);
$action="http://tempuri.org/prism/action/CustomerImage.Load";
$input=array('p_strActiveUserID'=>'admin','vntCustomerKeyOrID'=>
"DEC012345");
$resp=$soapclient->call("Load",$input,'http://tempuri.org/prism/
message/',$action);
This code is supposed to execute the method Load from class
CustomerImage with as parameters a username and a customer-id.
What I have been trying in Perl is the following:
#!perl -w
use SOAP::Lite;
my $soap = SOAP::Lite
-> uri('http://tempuri.org/prism/message')
->
proxy('http://username:[email protected]/soap/prism.ASP');
print $soap
-> CustomerImage
-> Load('admin', 'DEC012345');
This gives me a 405 error message (Module not found), and I am
not sure what to do with the different paths:
http://tempuri.org/prism/message and http://tempuri/prism/action
in Perl. And besides that there is also a prism.WSDL file on the
server and I am not sure if I should be using that instead of
the prism.ASP file.
As you can see I am still a little confused about the whole
thing, so if someone could point me in the right direction I
would really appreciate it.
Best regards,
Edwin de Graaf