axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/message RPCElement.java SOAPEnvelope.java
Date Mon, 12 Nov 2001 18:06:04 GMT
gdaniels    01/11/12 10:06:04

  Modified:    java/src/org/apache/axis/message RPCElement.java
                        SOAPEnvelope.java
  Log:
  Put the section 5 encoding style on the envelope if there's an RPCElement
  inside it, rather than writing it out during the RPCElement serialization.
  
  Revision  Changes    Path
  1.26      +1 -19     xml-axis/java/src/org/apache/axis/message/RPCElement.java
  
  Index: RPCElement.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/RPCElement.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- RPCElement.java	2001/11/09 18:18:51	1.25
  +++ RPCElement.java	2001/11/12 18:06:04	1.26
  @@ -158,25 +158,7 @@
   
       protected void outputImpl(SerializationContext context) throws Exception
       {
  -        if (attributes == null)
  -            attributes = new AttributesImpl();
  -        
  -        /**
  -         * Because we're an RPCElement, we can pretty well guess that
  -         * we're RPC encoded.  Default to section 5 encoding.
  -         * 
  -         * !!! TODO : make this overridable with other encoding styles!
  -         * 
  -         */ 
  -        String prefix = context.getPrefixForURI(Constants.URI_SOAP_ENC,
  -                                                "SOAP-ENV");
  -        attributes.addAttribute(Constants.URI_SOAP_ENV, 
  -                                Constants.ATTR_ENCODING_STYLE,
  -                                prefix + ":" + Constants.ATTR_ENCODING_STYLE,
  -                                "CDATA",
  -                                Constants.URI_SOAP_ENC);
  -        
  -        context.startElement(new QName(namespaceURI,name),attributes);
  +        context.startElement(new QName(namespaceURI,name), attributes);
           for (int i = 0; i < params.size(); i++) {
               ((RPCParam)params.elementAt(i)).serialize(context);
           }
  
  
  
  1.46      +5 -0      xml-axis/java/src/org/apache/axis/message/SOAPEnvelope.java
  
  Index: SOAPEnvelope.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/SOAPEnvelope.java,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- SOAPEnvelope.java	2001/11/07 19:00:42	1.45
  +++ SOAPEnvelope.java	2001/11/12 18:06:04	1.46
  @@ -184,6 +184,11 @@
               category.debug(JavaUtils.getMessage("addBody00"));
           element.setEnvelope(this);
           bodyElements.addElement(element);
  +
  +        // Set envelope encoding style if we have an RPC body
  +        if (element instanceof RPCElement)
  +            setEncodingStyleURI(Constants.URI_SOAP_ENC);
  +
           _isDirty = true;
       }
       
  
  
  

Mime
View raw message