Click here to get back home

SOAP::Lite

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
SOAP::Lite Christian Wittmer 03-05-2007
`--> Re: SOAP::Lite John Harrison03-08-2007
Posted by Christian Wittmer on March 5, 2007, 4:26 am
Please log in for more thread options


Hi,

new to SOAP and have some problems to get what I need.
First some info.
I have a webservice where I can POST a "faxNumber" and GET valid
"EmailAddress".
But I have no Idea how to do that with SOAP::Lite.
The method to call is "getEmailAddressByFaxNumber".

I tried several things, last is this:
my $soap = SOAP::Lite
-> uri($uri)
-> proxy($endpoint)
;

my $result = $soap->execute(
SOAP::Data->name(
"getEmailAddressByFaxNumber" => SOAP::Data->value(
SOAP::Data->name("faxNumber" => '00225')
)
)
);

print $result;

hoping someone could help me out.
Many thanks for any help.

Regards
Chris

--
Das Informationsportal. -> http://www.bietet.info
Für Vereine kostenloser Eintrag, Veranstaltungen kostenlos!!
Alle Formulare/Verträge sind online als PDF nachlesbar.
Eingetragener LinuxUser #323936 http://counter.li.org

Posted by Christian Wittmer on March 5, 2007, 6:12 am
Please log in for more thread options


Christian Wittmer wrote:

solution :)

my $soap = SOAP::Lite
-> uri($uri)
-> proxy($endpoint)
;

my $mail = SOAP::Data
->name('faxNumber' => '00225')
->type('string');
my $result = $soap->getEmailAddressByFaxNumber($mail);

unless ($result->fault) {
print $result->result(), "\n";
} else {
print join ", \n",
$result->faultcode,
$result->faultstring,
$result->faultdetail,"\n";
}

Thanks :)
Chris

> Hi,
>
> new to SOAP and have some problems to get what I need.
> First some info.
> I have a webservice where I can POST a "faxNumber" and GET valid
> "EmailAddress".
> But I have no Idea how to do that with SOAP::Lite.
> The method to call is "getEmailAddressByFaxNumber".
>
> I tried several things, last is this:
> my $soap = SOAP::Lite
> -> uri($uri)
> -> proxy($endpoint)
> ;
>
> my $result = $soap->execute(
> SOAP::Data->name(
> "getEmailAddressByFaxNumber" => SOAP::Data->value(
> SOAP::Data->name("faxNumber" => '00225')
> )
> )
> );
>
> print $result;
>
> hoping someone could help me out.
> Many thanks for any help.
>
> Regards
> Chris
>

--
Das Informationsportal. -> http://www.bietet.info
Für Vereine kostenloser Eintrag, Veranstaltungen kostenlos!!
Alle Formulare/Verträge sind online als PDF nachlesbar.
Eingetragener LinuxUser #323936 http://counter.li.org

Posted by John Harrison on March 8, 2007, 3:08 am
Please log in for more thread options


Christian Wittmer wrote:
> Hi,
>
> new to SOAP and have some problems to get what I need.
> First some info.
> I have a webservice where I can POST a "faxNumber" and GET valid
> "EmailAddress".
> But I have no Idea how to do that with SOAP::Lite.
> The method to call is "getEmailAddressByFaxNumber".
>
> I tried several things, last is this:
> my $soap = SOAP::Lite
> -> uri($uri)
> -> proxy($endpoint)
> ;
>
> my $result = $soap->execute(
> SOAP::Data->name(
> "getEmailAddressByFaxNumber" => SOAP::Data->value(
> SOAP::Data->name("faxNumber" => '00225')
> )
> )
> );
>
> print $result;
>
> hoping someone could help me out.
> Many thanks for any help.
>
> Regards
> Chris
>

No great expert on either Perl or SOAP::Lite but I believe all you need
to do is this

my $faxNumber = '00225';
my $email_address = SOAP::Lite
-> uri($uri)
-> proxy($endpoint)
-> getEmailAddressByFaxNumber($faxNumber)
-> result;

john

Similar ThreadsPosted
SOAP::Lite : Problem of # sign added by SOAP::Lite in the sent SOAPActionstring November 5, 2004, 8:45 pm
SOAP::Lite WSDL method with multiple soap:body parts February 16, 2005, 3:32 pm
Writing a HTML/ASP SOAP client for a SOAP::Lite destination March 16, 2005, 5:19 pm
Help with SOAP::Lite January 19, 2005, 11:35 pm
SOAP::Lite March 3, 2005, 6:13 am
Using SOAP::Lite and .NET November 16, 2005, 2:12 pm
use SOAP::Lite +autodispatch ??? November 23, 2004, 3:12 am
SOAP::Lite weirdness April 6, 2006, 8:07 am
ForkOnAccept for SOAP::Lite TCP server November 27, 2004, 11:32 am
Soap::Lite Cant get array of results? March 30, 2005, 12:43 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap