Hi,
I have taken the below code from Quick Start with SOAP - Perl.com and modified to my requirement.Server program runs without error.I have kept Demo.pm under /usr/local/apache2/cgi-bin directory.When I run the client program I am not getting any output.Whether the client program should be client.pl or client.cgi.I am new to SOAP.Please do the needful.
Client:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
use lib '/usr/lib/perl5/5.8.8/SOAP-Lite-0.65_3/lib';
use SOAP::Lite;
print SOAP::Lite
-> uri('http://xxx/cgi-bin/Demo')
-> proxy('http://xxx/cgi-bin/soap.cgi')
-> hi()
-> result;
[b][u]Server:
#!/usr/bin/perl
use lib '/usr/lib/perl5/5.8.8/SOAP-Lite-0.65_3/lib';
use SOAP::Transport::HTTP;
SOAP::Transport::HTTP::CGI
-> dispatch_to('/usr/local/apache2/cgi-bin/')
-> handle;
print "Hello World\n";
In dispatch_to I have mentioned the path of Demo.pm.In uri I have mentioned the path of Demo.pm.
Please do the needful.
Thanks,
Liyakath.