You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Colin Saxton <cc...@exel.co.uk> on 2001/06/06 10:26:08 UTC

IIS and Apache SOAP Client

Apache SOAP client does not work on IIS.  IIS sends:
...
Content-Type:text/xml; charset=utf-8
...

Where as Apache sends

...
Content-Type: text/xml; charset=utf-8
...

Notice the extra space after "Content-Type:".

An Exception is thrown in the SOAP client (GetAddress example) that states
the content type should be text/xml but it is read as ext/xml?? I think this
is because of the extra space...has anyone had this problem?

---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


Re: IIS and Apache SOAP Client

Posted by Sanjiva Weerawarana <sa...@watson.ibm.com>.
Are you using Apache SOAP v2.2? I believe earlier versions have had
a bug here.

Sanjiva.

----- Original Message -----
From: "Colin Saxton" <cc...@exel.co.uk>
To: <so...@xml.apache.org>
Cc: "Thomas Greenwood" <tg...@exel.co.uk>
Sent: Wednesday, June 06, 2001 4:26 AM
Subject: IIS and Apache SOAP Client


> Apache SOAP client does not work on IIS.  IIS sends:
> ...
> Content-Type:text/xml; charset=utf-8
> ...
>
> Where as Apache sends
>
> ...
> Content-Type: text/xml; charset=utf-8
> ...
>
> Notice the extra space after "Content-Type:".
>
> An Exception is thrown in the SOAP client (GetAddress example) that states
> the content type should be text/xml but it is read as ext/xml?? I think
this
> is because of the extra space...has anyone had this problem?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


Re: IIS and Apache SOAP Client

Posted by Sanjiva Weerawarana <sa...@watson.ibm.com>.
Are you using Apache SOAP v2.2? I believe earlier versions have had
a bug here.

Sanjiva.

----- Original Message -----
From: "Colin Saxton" <cc...@exel.co.uk>
To: <so...@xml.apache.org>
Cc: "Thomas Greenwood" <tg...@exel.co.uk>
Sent: Wednesday, June 06, 2001 4:26 AM
Subject: IIS and Apache SOAP Client


> Apache SOAP client does not work on IIS.  IIS sends:
> ...
> Content-Type:text/xml; charset=utf-8
> ...
>
> Where as Apache sends
>
> ...
> Content-Type: text/xml; charset=utf-8
> ...
>
> Notice the extra space after "Content-Type:".
>
> An Exception is thrown in the SOAP client (GetAddress example) that states
> the content type should be text/xml but it is read as ext/xml?? I think
this
> is because of the extra space...has anyone had this problem?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


RE: IIS and Apache SOAP Client

Posted by Jean-Louis Vila <jl...@cosmosbay.com>.
Yes, it's not a SOAP problem but an interoperability known problem.
When you send an HTTP request avoid all blank in content-type
header variable.
Notice that if you send "content-type:text/xml; charset=utf-8"
in an HTTP request, the common servlet method getEncoding() return
null. If you remove the blank between "text/xml;" and "charset=utf-8"
the getEncoding method return utf-8 !!!

Hope that help
Jean-Louis

> -----Message d'origine-----
> De : Colin Saxton [mailto:ccs@exel.co.uk]
> Envoyé : mercredi 6 juin 2001 10:26
> À : 'soap-user@xml.apache.org'
> Cc : Thomas Greenwood
> Objet : IIS and Apache SOAP Client
>
>
> Apache SOAP client does not work on IIS.  IIS sends:
> ...
> Content-Type:text/xml; charset=utf-8
> ...
>
> Where as Apache sends
>
> ...
> Content-Type: text/xml; charset=utf-8
> ...
>
> Notice the extra space after "Content-Type:".
>
> An Exception is thrown in the SOAP client (GetAddress example) that states
> the content type should be text/xml but it is read as ext/xml?? I
> think this
> is because of the extra space...has anyone had this problem?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


RE: IIS and Apache SOAP Client

Posted by Jean-Louis Vila <jl...@cosmosbay.com>.
Yes, it's not a SOAP problem but an interoperability known problem.
When you send an HTTP request avoid all blank in content-type
header variable.
Notice that if you send "content-type:text/xml; charset=utf-8"
in an HTTP request, the common servlet method getEncoding() return
null. If you remove the blank between "text/xml;" and "charset=utf-8"
the getEncoding method return utf-8 !!!

Hope that help
Jean-Louis

> -----Message d'origine-----
> De : Colin Saxton [mailto:ccs@exel.co.uk]
> Envoyé : mercredi 6 juin 2001 10:26
> À : 'soap-user@xml.apache.org'
> Cc : Thomas Greenwood
> Objet : IIS and Apache SOAP Client
>
>
> Apache SOAP client does not work on IIS.  IIS sends:
> ...
> Content-Type:text/xml; charset=utf-8
> ...
>
> Where as Apache sends
>
> ...
> Content-Type: text/xml; charset=utf-8
> ...
>
> Notice the extra space after "Content-Type:".
>
> An Exception is thrown in the SOAP client (GetAddress example) that states
> the content type should be text/xml but it is read as ext/xml?? I
> think this
> is because of the extra space...has anyone had this problem?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org