Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 45668 invoked from network); 8 Oct 2004 18:12:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Oct 2004 18:12:08 -0000 Received: (qmail 80017 invoked by uid 500); 8 Oct 2004 18:11:55 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 79911 invoked by uid 500); 8 Oct 2004 18:11:51 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 79863 invoked by uid 99); 8 Oct 2004 18:11:48 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 08 Oct 2004 11:11:45 -0700 Received: (qmail 45383 invoked by uid 1370); 8 Oct 2004 18:11:42 -0000 Date: 8 Oct 2004 18:11:42 -0000 Message-ID: <20041008181142.45382.qmail@minotaur.apache.org> From: tomj@apache.org To: ws-axis-cvs@apache.org Subject: cvs commit: ws-axis/java/src/org/apache/axis/client Stub.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N tomj 2004/10/08 11:11:42 Modified: java/src/org/apache/axis/client Stub.java Log: Add _getService() function. Provide an accessor for the service object that is held in the Stub. The service object contains the Call object for the last request, which in fact has several things (headers, request XML, response XML) that are very useful to have access to. Use a leading underscore to avoid conflicting with any Stub functions that may be emitted. All of the other Axis specific methods should probably be named with underscores too. Ooops. Revision Changes Path 1.40 +10 -1 ws-axis/java/src/org/apache/axis/client/Stub.java Index: Stub.java =================================================================== RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/client/Stub.java,v retrieving revision 1.39 retrieving revision 1.40 diff -u -r1.39 -r1.40 --- Stub.java 10 Aug 2004 14:09:37 -0000 1.39 +++ Stub.java 8 Oct 2004 18:11:42 -0000 1.40 @@ -412,8 +412,17 @@ call.addAttachmentPart(attachments[i]); } clearAttachments(); - } + } + /** + * Provide access to the service object, through which you can get the Call + * that is used to process the operations. + * Not part of JAX-RPC + * @return the service object for this stub + */ + public Service _getService() { + return service; + } /** * Helper method for updating headers from the response. *