in reply to SOAP::Transport::HTTP::CGI 411 Error

Hi timecatalyst,

The reason for the error you are getting is that (probably) you are running the script directly, and it is intented to be run as a CGI, in you HTTP Server, and then called by HTTP with a SOAP client.

In the SOAP::Lite guide you can see that for each SOAP server there is an equivalent SOAP client, just in the next code example.

That's because SOAP is intented to remote procedure call, in the specific case you are using (and the most common), over HTTP. That SOAP server you created is intented to be run as a cgi.

Put it in a cgi directory in a webserver (apache or anyother), and try running the client just next to the server, with the correct URL for your cgi (this is obvious, I know, but important), and I think everything will workm just fine. If not come back to us with more details.

  • Comment on Re: SOAP::Transport::HTTP::CGI 411 Error

Replies are listed 'Best First'.
Re^2: SOAP::Transport::HTTP::CGI 411 Error
by timecatalyst (Acolyte) on Nov 20, 2006 at 17:08 UTC
    Yeah, that's exactly what it was. Sorry, it was a long week. For some reason I had it in my mind that SOAP::Lite was starting up an HTTP server. Not sure how I came to that conclusion. Thanks for the feedback.