cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r527284 - /cocoon/trunk/blocks/cocoon-proxy/cocoon-proxy-impl/src/main/java/org/apache/cocoon/generation/WebServiceProxyGenerator.java
Date Tue, 10 Apr 2007 20:33:16 GMT
Author: joerg
Date: Tue Apr 10 13:33:15 2007
New Revision: 527284

URL: http://svn.apache.org/viewvc?view=rev&rev=527284
Log:
It seems the comment about missing consideration of XML declaration does no longer apply.
For http://marc.info/?t=117615325600006&r=1&w=4 I played around with reactivated wsproxy
sample and modified response body byte[] on the fly. The observed error only happened when
the actual encoding was ISO-8859-1 and the XML declaration was missing, ie. the XML parsed
by default as UTF-8.

Modified:
    cocoon/trunk/blocks/cocoon-proxy/cocoon-proxy-impl/src/main/java/org/apache/cocoon/generation/WebServiceProxyGenerator.java

Modified: cocoon/trunk/blocks/cocoon-proxy/cocoon-proxy-impl/src/main/java/org/apache/cocoon/generation/WebServiceProxyGenerator.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-proxy/cocoon-proxy-impl/src/main/java/org/apache/cocoon/generation/WebServiceProxyGenerator.java?view=diff&rev=527284&r1=527283&r2=527284
==============================================================================
--- cocoon/trunk/blocks/cocoon-proxy/cocoon-proxy-impl/src/main/java/org/apache/cocoon/generation/WebServiceProxyGenerator.java
(original)
+++ cocoon/trunk/blocks/cocoon-proxy/cocoon-proxy-impl/src/main/java/org/apache/cocoon/generation/WebServiceProxyGenerator.java
Tue Apr 10 13:33:15 2007
@@ -112,11 +112,6 @@
                 this.getLogger().debug("response: " + new String(response));
             }
 
-            /* TODO: Though I avoided the getResponseBodyAsString(), the content
-             *       seems not to be parsed correctly. Who cares about the encoding
-             *       in the XML declaration?
-             * {@link http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/HttpMethodBase.html#getResponseBodyAsString()}
-             */
             ByteArrayInputStream responseStream = new ByteArrayInputStream(response);
             InputSource inputSource = new InputSource(responseStream);
             parser = (SAXParser)this.manager.lookup(SAXParser.ROLE);



Mime
View raw message