On 10.04.2007 13:29, Lionel Barth wrote:
I have the message "Invalid byte 1 of 1-byte UTF-8 sequence."
Hello Lionel,
I reactivated a simple wsproxy sample [1] and played around with it. I
can only observe the error you have by breaking the returned XML
explicitely like having it ISO-8859-1 encoded (I saved the hello.xml
ISO-8859-1 encoded including a correct XML declaration) but without any
XML declaration (which I removed on the fly while remote debugging
before it gets parsed in lines 115 following of the
WebServiceProxyGenerator), so that the XML parser defaults to UTF-8.
Now I wonder how the XML of your remote web service looks like. Does it
include an XML declaration? Is a content-type header set on the response
itself?
In other words I don't consider different responses from a remote web
service as problem, the WebServiceProxyGenerator must be able to handle
them. But of course it needs a hint how to parse the XML, which is
normally the XML declaration. But maybe it makes sense to add a
parameter for response parsing encoding to the generator for such cases
where there is no hint in the response.
Joerg
[1] http://svn.apache.org/viewvc?view=rev&revision=527276
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]