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 he...@apache.org on 2004/01/06 07:52:18 UTC
cvs commit: ws-axis/contrib/axismora/src/org/apache/axismora/soap BasicMessageContext.java
hemapani 2004/01/05 22:52:18
Modified: contrib/axismora/src/org/apache/axismora/soap
BasicMessageContext.java
Log:
fix the problem and make sure this
code execute only for RPC
Revision Changes Path
1.6 +6 -6 ws-axis/contrib/axismora/src/org/apache/axismora/soap/BasicMessageContext.java
Index: BasicMessageContext.java
===================================================================
RCS file: /home/cvs/ws-axis/contrib/axismora/src/org/apache/axismora/soap/BasicMessageContext.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- BasicMessageContext.java 2 Jan 2004 08:34:12 -0000 1.5
+++ BasicMessageContext.java 6 Jan 2004 06:52:18 -0000 1.6
@@ -147,7 +147,7 @@
/* serializer of the result */
private SerializationContext serializer;
/* Service Style */
- private Style style;
+ private Style style = Style.RPC;
private Writer w;
@@ -509,11 +509,11 @@
this.soapEnvelope.addBodyElement(bo);
-// NOt needed specific to rpc
-// if (this.methodName != null) {
-// bo.setName(this.methodName.getLocalPart() + "Response");
-// bo.setNamespaceURI(this.methodName.getNamespaceURI());
-// }
+ //needed specific to rpc
+ if (this.style == Style.RPC){
+ bo.setName(this.methodName.getLocalPart() + "Response");
+ bo.setNamespaceURI(this.methodName.getNamespaceURI());
+ }
/*
** registor our Serializer **