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:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to