You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by to...@apache.org on 2004/10/08 20:11:42 UTC
cvs commit: ws-axis/java/src/org/apache/axis/client Stub.java
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.
*