Hm.  Well, OK, but we're not serializing and deserializing the attachments this way.

Granted, it would be expensive in some cases to do so, but the point of LocalSender is 
to test things like this.  Perhaps we should give it a "test" mode and a "fast" mode, 
which just passes through the objects (no serialization)?

--G

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 19, 2003 4:30 PM
> To: [EMAIL PROTECTED]
> Subject: cvs commit: xml-axis/java/src/org/apache/axis/transport/local
> LocalSender.java
> 
> 
> jmsnell     2003/02/19 13:30:02
> 
>   Modified:    java/src/org/apache/axis/transport/local 
> LocalSender.java
>   Log:
>   FIX: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17161
>   
>   Applied patch included in bug report
>   
>   Revision  Changes    Path
>   1.44      +13 -2     
> xml-axis/java/src/org/apache/axis/transport/local/LocalSender.java
>   
>   Index: LocalSender.java
>   ===================================================================
>   RCS file: 
> /home/cvs/xml-axis/java/src/org/apache/axis/transport/local/Lo
> calSender.java,v
>   retrieving revision 1.43
>   retrieving revision 1.44
>   diff -u -r1.43 -r1.44
>   --- LocalSender.java        11 Dec 2002 22:38:25 -0000      1.43
>   +++ LocalSender.java        19 Feb 2003 21:30:02 -0000      1.44
>   @@ -112,14 +112,25 @@
>    
>            // copy the request, and force its format to 
> String in order to
>            // exercise the serializers.
>   -        String msgStr = 
> clientContext.getRequestMessage().getSOAPPartAsString();
>   +
>   +// START FIX: 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17161
>   +
>   +        Message clientRequest = clientContext.getRequestMessage();
>   +        
>   +        String msgStr = clientRequest.getSOAPPartAsString();
>    
>            if (log.isDebugEnabled()) {
>                log.debug(Messages.getMessage("sendingXML00", 
> "LocalSender"));
>                log.debug(msgStr);
>            }
>   +        
>   +        Message serverRequest = new Message(msgStr);
>   +        serverRequest.getAttachmentsImpl().setAttachmentParts(
>   +          clientRequest.getAttachmentsImpl().getAttachments());
>   +        serverContext.setRequestMessage(serverRequest);
>   +
>   +// END FIX: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17161
>    
>   -        serverContext.setRequestMessage(new Message(msgStr));
>            serverContext.setTransportName("local");
>    
>            // Also copy authentication info if present
>   
>   
>   
> 

Reply via email to