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 mu...@apache.org on 2003/12/19 04:35:15 UTC
cvs commit: ws-axis/contrib/axismora/src/org/apache/axismora/client Call.java
muthulee 2003/12/18 19:35:15
Modified: contrib/axismora/src/org/apache/axismora/client Call.java
Log:
Modified call object to handle Literal things.
PR:
Obtained from:
Submitted by:
Reviewed by:
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
Revision Changes Path
1.4 +27 -7 ws-axis/contrib/axismora/src/org/apache/axismora/client/Call.java
Index: Call.java
===================================================================
RCS file: /home/cvs/ws-axis/contrib/axismora/src/org/apache/axismora/client/Call.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Call.java 21 Nov 2003 05:30:25 -0000 1.3
+++ Call.java 19 Dec 2003 03:35:15 -0000 1.4
@@ -67,6 +67,10 @@
import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;
+import org.apache.axis.AxisFault;
+import org.apache.axis.enum.Style;
+import org.apache.axis.enum.Use;
+import org.apache.axis.soap.SOAPConstants;
import org.apache.axismora.MessageContext;
import org.apache.axismora.encoding.InParameter;
import org.apache.axismora.encoding.OutParameter;
@@ -80,10 +84,6 @@
import org.apache.axismora.wrappers.simpleType.ShortParam;
import org.apache.axismora.wrappers.simpleType.StringParam;
-import org.apache.axis.AxisFault;
-import org.apache.axis.enum.Style;
-import org.apache.axis.soap.SOAPConstants;
-
/**
* This calss implements the JAX-RPC call interace. There are few methods we do
* not need yet. We have to decide between JAX-RPC client side support and or leaving
@@ -110,9 +110,11 @@
private String username;
/* if authentication used the passwd */
private char[] passwd;
-
+ /*style of the web service*/
private Style style;
-
+ /*specifies whether literal or encoded*/
+ private Use use;
+
private SOAPConstants constants = SOAPConstants.SOAP12_CONSTANTS;
private String encoding;
@@ -308,9 +310,11 @@
this.soapAction,
constants);
+
ClientRequestContext reqContext =
new ClientRequestContext(sender, soapAction,
methodName, inInfo, style, encoding);
+
return this.engine.processClient(reqContext);
} catch (MalformedURLException e) {
e.printStackTrace();
@@ -422,4 +426,20 @@
*/
public void setStyle(Style st) {
style=st;
- }}
+ }
+
+ /**
+ * @return
+ */
+ public Use getUse() {
+ return use;
+ }
+
+ /**
+ * @param use
+ */
+ public void setUse(Use use) {
+ this.use = use;
+ }
+
+}