When invoking a soap service I always check for the resp.generatedFault(), if 
no fault then get the return value.

fe:

Response resp = call.invoke(url, null);
if (resp.generatedFault()) {
    return resp.getFault();
}
if (resp.getReturnValue() != null) {
     return resp.getReturnValue().getValue();
}

/victor


On Thu,  4 Oct 2001 01:12, you wrote:
> Hi guys,
>
> While I send a soap call to the server, it works very well if there is no
> problem with the soap call. But if I have made some mistake with it, I will
> get a FileNotFoundException. I traced into the SOAP code and found that
> RPCRouterServlet has caught those problems and a right SOAP response with
> fault information has also been produced which I can print out on the
> server. But I still failed on the client side while using
> "URLConnection.getInputStream()" to get the response. I am very confused
> about this.
>
> Thanks!
>
> Bo

-- 
Victor Hadianto
Nuix Pty. Ltd.      (02) 9283 9010

Reply via email to