Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > SOAP::Lite, calling apache/axis demo web service

Thread Tools

SOAP::Lite, calling apache/axis demo web service

Posts: n/a
Has anyone installed apache/axis and then used SOAP::Lite to talk to the
demo app they include?

I went all the way through the axis installation instructions at
I was able to run the stock quote demo and got back the correct result
(55.25). If I go to
I get a page that says, "And now some services" and I can see the
services listed there including the following:

* urnmltoday-delayed-quotes (wsdl)
* test
* getQuote

now, however, I want to call it from perl. But I can't get it to return
anything. My code is below. Is there some place where they document how
to call
this service?

use SOAP::Lite;

print "The SOAP Server says: ";
print SOAP::Lite
-> uri('urnmltoday-delayed-quotes')
-> proxy('
-> getQuote('user1', 'XXX')
-> result . "\n\n";

John G. Heim
University of Wisconsin - Division of Information Technology (DoIT)
1210 West Dayton St, #4297, Phone: 2-9887

To boldly code what no one has coded before.
Reply With Quote
Posts: n/a
JGH <(E-Mail Removed)> wrote in news:cdjvls$p5l$1

> Has anyone installed apache/axis and then used SOAP::Lite to talk to

> demo app they include?

Okay, I got it working:

use SOAP::Lite;

my $lite = SOAP::Lite->new;

$response = $lite
-> uri('urnmltoday-delayed-quotes')
-> getQuote('XXX');
print "[" . $response->result . "]\n";
die "Fault: ".$response->faultcode." ".$response->faultdetail." ".
$response->faultstring if $response->faultcode;

# Overwrite the a SOAP::Lite function returning proper credentials for
the SOAP server you are talking to...
sub SOAP::Transport::HTTP::Client::get_basic_credentia ls
{ return 'user1' => 'pass1'; }

my $hash = shift;

print ("\n------------------\n");
foreach (sort keys %$hash)
{ printf ("%-20.20s : %s\n", $_, $hash->{$_}); }

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling Web Service that calls other Web Service with Windows Authentication ASP .Net Security 1 06-14-2006 08:55 PM
InvocationTargetException when calling "new Service()" in Axis web service to call another web service Michael Averstegge Java 0 01-10-2006 11:05 PM
Calling a Web Service using Axis, from within an Axis Web Service running under Tomcat hocho888 Java 1 04-29-2005 08:26 PM
wxPython demo /Process does not open new demo Andy Leszczynski Python 1 02-18-2005 06:03 PM
PyOpenGL demo in wxPython demo crashes F. GEIGER Python 9 05-03-2004 04:43 PM