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 jm...@apache.org on 2003/02/19 22:30:02 UTC
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/LocalSender.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