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 gd...@apache.org on 2004/01/06 00:33:34 UTC

cvs commit: ws-axis/java/src/org/apache/axis/client Call.java

gdaniels    2004/01/05 15:33:33

  Modified:    java     changelog.html
               java/samples/transport FileReader.java
               java/src/org/apache/axis/client Call.java
  Log:
  Very minor changes:
  
  * Update the changelog a touch
  
  * Fix some code silliness in FileReader
  
  * Answer some commented issues in Call
  
  Revision  Changes    Path
  1.8       +3 -1      ws-axis/java/changelog.html
  
  Index: changelog.html
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/changelog.html,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- changelog.html	1 Dec 2003 21:31:35 -0000	1.7
  +++ changelog.html	5 Jan 2004 23:33:33 -0000	1.8
  @@ -20,9 +20,11 @@
   
   <h3>Changes from 1.1</h3>
   <ul>
  +  <li>Preliminary SAAJ 1.2 support!</li>
  +  <li>Improved doc/literal support</li>
     <li>log4j.properties is no longer in axis.jar. This is to avoid conflicts
      with the configuration files in other bits of the application.</li>
  -   <li>Many bugfixes.</li>
  +  <li>Many bugfixes.</li>
   </ul>
   
   <h2>Axis 1.1</h2>
  
  
  
  1.22      +1 -2      ws-axis/java/samples/transport/FileReader.java
  
  Index: FileReader.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/samples/transport/FileReader.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- FileReader.java	22 Apr 2003 19:33:32 -0000	1.21
  +++ FileReader.java	5 Jan 2004 23:33:33 -0000	1.22
  @@ -77,7 +77,6 @@
     boolean  halted     = false ;
   
     public void run() {
  -    String tmp = "" ;
       AxisServer  server = new AxisServer();
       server.init();
   
  @@ -115,7 +114,7 @@
               msg.setMessageContext(msgContext);
           }
           
  -        byte[] buf = (byte[]) msg.getSOAPPartAsBytes();
  +        byte[] buf = msg.getSOAPPartAsBytes();
           FileOutputStream fos = new FileOutputStream( "xml" + thisNum + ".res" );
           fos.write( buf );
           fos.close();
  
  
  
  1.215     +7 -9      ws-axis/java/src/org/apache/axis/client/Call.java
  
  Index: Call.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/client/Call.java,v
  retrieving revision 1.214
  retrieving revision 1.215
  diff -u -r1.214 -r1.215
  --- Call.java	26 Dec 2003 15:18:48 -0000	1.214
  +++ Call.java	5 Jan 2004 23:33:33 -0000	1.215
  @@ -322,10 +322,14 @@
           initialize();
       }
   
  -    // fixme: why have this if we have Call(URL) ?
       /**
        * Build a call from a URL string.
        *
  +     * This is handy so that you don't have to manually call Call.initialize()
  +     * in order to register custom transports.  In other words, whereas doing
  +     * a new URL("local:...") would fail, new Call("local:...") works because
  +     * we do the initialization of our own and any configured custom protocols. 
  +     *
        * @param url the target endpoint URL
        * @exception MalformedURLException
        */
  @@ -734,15 +738,12 @@
           return useSOAPAction;
       } // useSOAPAction
   
  -    // fixme: this never throws IllegalArgumentException
       /**
        * Set the soapAction URI.
        *
        * @param SOAPActionURI  the new SOAP action URI
  -     * @throws IllegalArgumentException if the URI is inapropreate
        */
  -    public void setSOAPActionURI(String SOAPActionURI)
  -            throws IllegalArgumentException {
  +    public void setSOAPActionURI(String SOAPActionURI) {
           useSOAPAction = true;
           this.SOAPActionURI = SOAPActionURI;
       } // setSOAPActionURI
  @@ -1819,8 +1820,6 @@
       /* End of core JAX-RPC stuff                                            */
       /************************************************************************/
   
  -    // fixme: can this throw RemoteException? Is AxisFault hoovering up all the
  -    //  faults?
       /**
        * Invoke the service with a custom SOAPEnvelope.
        * <p>
  @@ -1829,8 +1828,7 @@
        * @param env a SOAPEnvelope to send
        * @throws AxisFault if there is any failure
        */
  -    public SOAPEnvelope invoke(SOAPEnvelope env)
  -                                  throws java.rmi.RemoteException {
  +    public SOAPEnvelope invoke(SOAPEnvelope env) throws AxisFault {
           try {
               Message msg = null ;