You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by iv...@apache.org on 2002/11/13 05:40:16 UTC
cvs commit: xml-cocoon2/src/java/org/apache/cocoon/generation WebServiceProxyGenerator.java
ivelin 2002/11/12 20:40:16
Modified: src/java/org/apache/cocoon/generation
WebServiceProxyGenerator.java
Log:
when response is not valid XML, show the target URL
Revision Changes Path
1.3 +3 -3 xml-cocoon2/src/java/org/apache/cocoon/generation/WebServiceProxyGenerator.java
Index: WebServiceProxyGenerator.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/generation/WebServiceProxyGenerator.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- WebServiceProxyGenerator.java 21 Sep 2002 22:57:18 -0000 1.2
+++ WebServiceProxyGenerator.java 13 Nov 2002 04:40:16 -0000 1.3
@@ -266,7 +266,7 @@
int startOfXML = ret.indexOf("<?xml");
if (startOfXML == -1)
{ // No xml?!
- throw new ProcessingException("Invalid response - no xml");
+ throw new ProcessingException("Invalid (non XML) response returned from: " + method.getUrl() );
}
ret.substring(startOfXML);
@@ -279,8 +279,8 @@
ex);
}
} // fetch
-
-
+
+
/**
* Create once per client session and
* consequetively return an HttpMultiClient
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org