Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 52415 invoked from network); 12 Nov 2005 00:35:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Nov 2005 00:35:09 -0000 Received: (qmail 31106 invoked by uid 500); 12 Nov 2005 00:35:02 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 30844 invoked by uid 500); 12 Nov 2005 00:35:01 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 30833 invoked by uid 99); 12 Nov 2005 00:35:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Nov 2005 16:35:01 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [69.51.76.26] (HELO cns1.transaria.net) (69.51.76.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Nov 2005 16:34:53 -0800 Received: from [209.137.233.228] (vanns-cpe-msl.mt.cust.transaria.net [209.137.233.228] (may be forged)) by cns1.transaria.net (8.13.4/8.13.4) with ESMTP id jAC0YehM026896 for ; Fri, 11 Nov 2005 17:34:40 -0700 From: Pobzeb Armerding To: X-Mailer: PocoMail 4.0 (3350) - Licensed Version Reply-To: pobzeb.armerding@vanns.net Date: Fri, 11 Nov 2005 17:34:41 -0700 Message-ID: <20051111173441.668334@pobzeb> In-Reply-To: <20051111171926.053037@pobzeb> Subject: Re: converting stubs to XML Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hey, guess what? That does not work after all! I guess that I hadn't ever= tried to access the call object from my client. Instead, look in the= SOAPInterfaceStub.java file for the call object and the invoke method that= you want to get the response XML for. Then, Use the code that I had posted= in my last email, but replace: ((SOAPInterfaceStub)service)._getCall() with _call So it would look like this: java.lang.Object _resp =3D _call.invoke(new java.lang.Object[] {Param 1, Param= 2, Ect.}); try =09{ =09java.io.ByteArrayOutputStream baos =3D new= java.io.ByteArrayOutputStream(); =09_call.getMessageContext().getMessage().writeTo(baos); =09String XMLContents =3D new java.lang.String(baos.toByteArray(),= "UTF-8"); =09System.out.println(XMLContents); =09} catch (Exception e) =09{ =09} This one should work (I tested it and it worked for me), but then again... Pobzeb Armerding Vann's Inc. Software Engineer On Fri, 11 Nov 2005 17:19:26 -0700, Pobzeb Armerding wrote: | ((SOAPInterfaceStub)service)._getCall().getMessageContext().getMessage | ().writeTo(baos); String XMLContents =3D new | String(baos.toByteArray(), "UTF-8");