ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/soap SOAPConnectionImpl.java
Date Thu, 11 Mar 2004 12:25:22 GMT
ias         2004/03/11 04:25:22

  Modified:    java/src/org/apache/axis/soap SOAPConnectionImpl.java
  Log:
  Improved call to use Call.invoke(Message) instead of Call.invoke(SOAPEnvelope). This approach
helps synchronize character encoding between request/response and transfer MIME headers to
a transport layer such as HTTP.
  
  Revision  Changes    Path
  1.19      +2 -4      ws-axis/java/src/org/apache/axis/soap/SOAPConnectionImpl.java
  
  Index: SOAPConnectionImpl.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/soap/SOAPConnectionImpl.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- SOAPConnectionImpl.java	5 Mar 2004 05:25:00 -0000	1.18
  +++ SOAPConnectionImpl.java	11 Mar 2004 12:25:22 -0000	1.19
  @@ -15,9 +15,9 @@
    */
   package org.apache.axis.soap;
   
  +import org.apache.axis.Message;
   import org.apache.axis.attachments.Attachments;
   import org.apache.axis.client.Call;
  -import org.apache.axis.message.SOAPEnvelope;
   import org.apache.axis.utils.Messages;
   
   import javax.xml.soap.SOAPException;
  @@ -70,8 +70,6 @@
           try {
               Call call = new Call(endpoint.toString());
               ((org.apache.axis.Message)request).setMessageContext(call.getMessageContext());
  -            call.getMessageContext().setProperty(SOAPMessage.CHARACTER_SET_ENCODING, request.getProperty(SOAPMessage.CHARACTER_SET_ENCODING));
  -            SOAPEnvelope env = ((org.apache.axis.Message)request).getSOAPEnvelope();
               Attachments attachments = ((org.apache.axis.Message)
                       request).getAttachmentsImpl();
               if (attachments != null) {
  @@ -88,7 +86,7 @@
               
               call.setTimeout(timeout);
               call.setReturnClass(SOAPMessage.class);
  -            call.invoke(env);
  +            call.invoke((Message) request);
               return call.getResponseMessage();
           } catch (java.net.MalformedURLException mue){
               throw new SOAPException(mue);
  
  
  

Mime
View raw message