Re: Starting with SOAP



Ian Wilson wrote:
Amer Neely wrote:
rahed wrote:

Amer Neely <perl4hire@xxxxxxxxxxxxxx> writes:

When I do a search for 'soap::transport::http' at CPAN I get a list,
and the first hit, SOAP::Transport::HTTP, takes me to
SOAP-Lite-0.69'. The documentation leads me to believe that
SOAP::Transport::HTTP is included in SOAP-Lite-0.69.

True AFAIK.


I'm confused as to why I'm getting an error message telling me it can't find can't locate SOAP/Transport/HTTP.pm. As far as I can tell SOAP::Lite installed OK.

I think your problem is with installation of SOAP modules and not with usage of SOAP or SOAP::Lite.

That could be. I'll try installing again, and capture the output.

These commands should all return without any error messages
$ perl -MSOAP::Lite -e1

$ perl -MSOAP::Transport::HTTP -e1

$ perl -MSOAP::Transport::HTTP::CGI -e
No code specified for -e.

.... so I figured you forgot the '1' ...

Can't locate SOAP/Transport/HTTP/CGI.pm in @INC (@INC contains: C:/usr/site/lib
C:/usr/lib .).
BEGIN failed--compilation aborted.

This is on my home PC, which is acting as the 'client'.

Directory of C:\usr\lib\SOAP

15/08/2007 09:16p <DIR> .
15/08/2007 09:16p <DIR> ..
08/12/2003 09:13a 167,831 Lite.pm
17/04/2002 01:16a 12,182 Test.pm
15/08/2007 09:15p <DIR> Transport


Directory of C:\usr\lib\SOAP\Transport

15/08/2007 09:15p <DIR> .
15/08/2007 09:15p <DIR> ..
14/06/2002 10:13a 3,147 FTP.pm
14/06/2002 10:13a 29,726 HTTP.pm
14/06/2002 10:13a 3,282 IO.pm
14/06/2002 10:13a 8,156 JABBER.pm
17/04/2002 01:16a 2,052 LOCAL.pm
14/06/2002 10:13a 3,749 MAILTO.pm
14/06/2002 10:13a 7,813 MQ.pm
14/06/2002 10:13a 3,744 POP3.pm
14/06/2002 10:13a 6,940 TCP.pm

There is no 'SOAP' directory under /usr/site/lib


Somewhere in one of the directories listed in @INC you should have
SOAP/Lite.pm
SOAP/Transport/HTTP.pm
SOAP/Transport/HTTP/CGI.pm
(and many other related modules)

So it appears my installation is flawed. I will re-install.


Bear in mind I'm absolutely new to SOAP and using code supplied as an example in the documentation as a starting point. SOAP was suggested as a means of getting some form data from one server to another, but I'm beginning to wonder if it's worth it. If someone has an alternative (besides the database route already suggested) please jump in.


For what it's worth, I find Perl and SOAP::Lite to be one of the easiest SOAP implementations to use. I started with the simplest examples in the documentation (e.g. The "Temperatures" examples in the Cookbook.

Yes, I got that one to work fine too. Which gave me encouragement.

For more complicated services, SOAP::Lite can get a bit tricky, it certainly has some limitations. I've managed to produce SOAP::Lite web-services for consumption by .NET clients (C# Visual Studio) and SOAP::Lite clients for complex Java web-services.

I think you are right in that my installation may be flawed - I will re-install SOAP.

--
Amer Neely
w: www.webmechanic.softouch.on.ca/
Perl | MySQL programming for all data entry forms.
"Others make web sites. We make web sites work!"
.



Relevant Pages

  • Re: soap + wsdl troubles
    ... The example that you dumped showed a SOAP packet ... The standards docs provide pretty good detail -- but if you're just beginning, it's likely better to read some articles on-line to get started or pick up a book on web services. ... look through the documentation to see how to specify Doc/ Literal ... then get the WSDL from the server (it looks like you've got a URL that points to the WSDL that you can just point a browser to to get the WSDL. ...
    (comp.lang.ruby)
  • Re: Extreme!!! Special timelimited competive upgrade offer
    ... found the documentation and examples both confusing and unfocused. ... Let me tell you why I chose RemObjects to fulfil my n-tier dreams. ... Their support is second to none. ... Interoperability with other systems via SOAP has been there since ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: soap + wsdl troubles
    ... The example that you dumped showed a SOAP packet ... > that is using Soap Encoding for the XML (i.e., or more specifically, it uses ... look through the documentation to see how to specify Doc/Literal ...
    (comp.lang.ruby)
  • Re: Starting with SOAP
    ... getting an error message telling me it can't find can't locate SOAP/Transport/HTTP.pm. ... I think your problem is with installation of SOAP modules and not with usage of SOAP or SOAP::Lite. ... example in the documentation as a starting point. ... I've managed to produce SOAP::Lite web-services for consumption by .NET clients and SOAP::Lite clients for complex Java web-services. ...
    (comp.lang.perl.misc)
  • Re: Finding installed package files
    ... for making installation information more easily accessible? ... >> somewhere where more information about the key parts of the package ... >> As an example I installed the latest Python on Fedora 3. ... what one would expect is a form of help documentation much more integrated ...
    (alt.os.linux.redhat)