Return-Path: Mailing-List: contact soap-user-help@xml.apache.org; run by ezmlm Delivered-To: mailing list soap-user@xml.apache.org Received: (qmail 42871 invoked from network); 5 Jun 2002 19:25:56 -0000 Received: from email.nist.gov (129.6.2.7) by daedalus.apache.org with SMTP; 5 Jun 2002 19:25:56 -0000 Received: from almostheaven (asynce016.nist.gov [129.6.31.16]) by email.nist.gov (8.12.2/8.12.2) with SMTP id g55JPx7c026576 for ; Wed, 5 Jun 2002 15:26:00 -0400 (EDT) From: "Daniel P Allen" To: Subject: RE: Handling SOAP Faults using HTTPURLConnection based client Date: Wed, 5 Jun 2002 15:23:37 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 In-Reply-To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This unfriendly behavior of HttpURLConnection seems to have been corrected, errr... changed, in J2SE 1.4. Dan -----Original Message----- From: K. Swaminathan [mailto:swami@instantis.com] Sent: Tuesday, June 04, 2002 10:05 PM To: soap-user@xml.apache.org Subject: Handling SOAP Faults using HTTPURLConnection based client Hi, I am trying to write a simple SOAP client using HttpUrlConnection. If the server response is a SOAP Fault, then The HttpURLConnection seems to throw a FileNotFoundException, when attempting to do a conn.getResponseCode(). How does one get access to the fault information. Some example that I saw on the web, suggested conn.getErrorStream(), but it returns null. Can someone point me to how you read in the fault info? Thanks Swami K.