in reply to Webservices and browsers
The hibye.pl scrpt is not a CGI -- it doesn't emit HTTP headers (Content-type).
A web browser is not a SOAP client -- it doesn't emit the necessary HTTP headers (SOAPAction) or send a SOAP message.
If you want to write a CGI that's also a SOAP client, that's fine -- but you can't just throw any old executable on a webserver and expect it to work.
Try the following.
use CGI; print CGI-header; use SOAP::Lite; print SOAP::Lite -> uri('http://www.soaplite.com/Demo') -> proxy('') # set this to your SOAP service URL -> hi() -> result;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Webservices and browsers
by joec_ (Scribe) on Mar 02, 2009 at 09:36 UTC | |
by jhourcle (Prior) on Mar 02, 2009 at 17:31 UTC |
In Section
Seekers of Perl Wisdom