You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Bill Binole <bi...@Attachmate.com> on 2000/09/13 20:34:12 UTC

malformed host header

I have been trying to get the soap-2_0 examples to work with no luck.  I
keep getting back an error saying that the client sent a malformed Host
Header.  I have tried the addressbook example and the calculator.   I am
using the apache web server version 1.3.12 for NT.  I can touch the
rpcrouter with my web browser so I know that it is accessible.  I am
wondering if there is some configuration issue with the apache web sever
that I have missed.  

Bill


Re: malformed host header

Posted by Nathan Wray <nw...@mich.com>.
Bill;

I don't know if this will help or not, I know others are having similar
problems and there may be different causes.  Worked for me.
If it does help please let me know.  If it doesn't help, consider posting
stderr (both the apache reply and the stacktrace) with your question so
someone can help.

---
If you're running under a webserver (I'm using SOAP under Tomcat under
Apache) you might think you don't need the port number, like
"http://localhost/soap/servlet/rpcrouter", when actually (at least for the
ServiceManagerClient and the Stock Quote example) you have to
specify the port number or the SOAP classes create an invalid header.  If
you look at the report back from Apache you'll notice a suspicious
":-1".  Switch to "http://localhost:80/soap/servlet/rpcrouter" and it starts
working.



Bill Binole wrote:

> I have been trying to get the soap-2_0 examples to work with no luck.  I
> keep getting back an error saying that the client sent a malformed Host
> Header.  I have tried the addressbook example and the calculator.   I am
> using the apache web server version 1.3.12 for NT.  I can touch the
> rpcrouter with my web browser so I know that it is accessible.  I am
> wondering if there is some configuration issue with the apache web sever
> that I have missed.
>
> Bill

--
Nathan Wray
nwray@mich.com
--



Re: malformed host header

Posted by Nathan Wray <nw...@mich.com>.
Bill;

I don't know if this will help or not, I know others are having similar
problems and there may be different causes.  Worked for me.
If it does help please let me know.  If it doesn't help, consider posting
stderr (both the apache reply and the stacktrace) with your question so
someone can help.

---
If you're running under a webserver (I'm using SOAP under Tomcat under
Apache) you might think you don't need the port number, like
"http://localhost/soap/servlet/rpcrouter", when actually (at least for the
ServiceManagerClient and the Stock Quote example) you have to
specify the port number or the SOAP classes create an invalid header.  If
you look at the report back from Apache you'll notice a suspicious
":-1".  Switch to "http://localhost:80/soap/servlet/rpcrouter" and it starts
working.



Bill Binole wrote:

> I have been trying to get the soap-2_0 examples to work with no luck.  I
> keep getting back an error saying that the client sent a malformed Host
> Header.  I have tried the addressbook example and the calculator.   I am
> using the apache web server version 1.3.12 for NT.  I can touch the
> rpcrouter with my web browser so I know that it is accessible.  I am
> wondering if there is some configuration issue with the apache web sever
> that I have missed.
>
> Bill

--
Nathan Wray
nwray@mich.com
--