axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hemap...@apache.org
Subject cvs commit: ws-axis/contrib/axismora/src/org/apache/axismora/soap BasicMessageContext.java
Date Tue, 06 Jan 2004 06:52:18 GMT
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 **
  
  
  

Mime
View raw message