axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/client AdminClient.java ServiceClient.java
Date Sat, 04 Aug 2001 04:19:34 GMT
rubys       01/08/03 21:19:34

  Modified:    java/src/org/apache/axis/client AdminClient.java
                        ServiceClient.java
  Log:
  Omit the XML Declaration from the Admin client output
  
  Revision  Changes    Path
  1.28      +3 -0      xml-axis/java/src/org/apache/axis/client/AdminClient.java
  
  Index: AdminClient.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/AdminClient.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- AdminClient.java	2001/07/30 02:29:28	1.27
  +++ AdminClient.java	2001/08/04 04:19:34	1.28
  @@ -59,6 +59,7 @@
   import java.io.*;
   import java.util.*;
   
  +import org.apache.axis.AxisEngine ;
   import org.apache.axis.utils.Options ;
   import org.apache.axis.encoding.SerializationContext ;
   import org.apache.axis.message.SOAPEnvelope ;
  @@ -153,6 +154,8 @@
                                       (SOAPEnvelope) outMsg.getAsSOAPEnvelope();
                   SOAPBodyElement body = envelope.getFirstBody();
                   StringWriter writer = new StringWriter();
  +                client.addOption(AxisEngine.PROP_XML_DECL, 
  +                    new Boolean("false"));
                   SerializationContext ctx = new SerializationContext(writer,
                                                     client.getMessageContext());
                   body.output(ctx);
  
  
  
  1.37      +7 -0      xml-axis/java/src/org/apache/axis/client/ServiceClient.java
  
  Index: ServiceClient.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/ServiceClient.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- ServiceClient.java	2001/08/03 19:12:59	1.36
  +++ ServiceClient.java	2001/08/04 04:19:34	1.37
  @@ -504,6 +504,13 @@
           Debug.Print( 1, "Exit: ServiceClient::invoke(RPCElement)" );
           return( result );
       }
  +
  +    /**
  +     * Set engine option.
  +     */
  +    public void addOption(String name, Object value) {
  +         engine.addOption(name, value);
  +    }
       
       /**
        * Invoke this ServiceClient with its established MessageContext
  
  
  

Mime
View raw message