Page 1 of 1

WSDL Encoding Error

Posted: Wed Feb 28, 2007 3:55 am
by kingargyle
Not sure if this is a SOAPUI error or if it's a Oxygen Error with WSDL Analyzer, but I'm getting a Encoding error when trying to communicate with a MockService from the SOAP UI eclipse plugin. I get the following back in the response:

org.apache.commons.httpclient.HttpException :
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>Server</faultcode>
<faultstring>java.io.UnsupportedEncodingException: "utf-8"</faultstring>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

I'll also post a bug in the SOAP UI forum as well.

Posted: Wed Feb 28, 2007 9:43 am
by Radu
Hi,

In the Mime headers sent along with the request we set the "Content-Type" header with the value : "text/xml; charset=utf-8". This is possibly why the server reports the exception.
Setting the header to this value is the default way of posting XML fragments and all servers should support this:
http://www.w3.org/International/O-charset

Maybe the server needs some internal reconfiguration:
http://www.w3.org/International/O-HTTP-charset

Regards,
Radu

Posted: Fri Mar 02, 2007 5:49 am
by kingargyle
This was a bug with Soap UI, they are putting a fix in for their next snapshot release.