DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17161>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17161

LocalSender removes attachments from request message

           Summary: LocalSender removes attachments from request message
           Product: Axis
           Version: 1.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Basic Architecture
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


LocalSender creates a new MessageContext from the client's request but it does 
not take the attachment parts but just the SOAPEnvelope.

  // Define a new messageContext per request
  MessageContext serverContext = new MessageContext(targetServer);

  // copy the request, and force its format to String in order to
  // exercise the serializers.
  String msgStr = clientContext.getRequestMessage().getSOAPPartAsString();

  if (log.isDebugEnabled()) {
      log.debug(Messages.getMessage("sendingXML00", "LocalSender"));
      log.debug(msgStr);
  }

  //HERE ATTACHMENTS ARE LOST!!
  serverContext.setRequestMessage(new Message(msgStr));


I am using LocalTransport to test my services but attachments are lost in the 
process of sending the request. In my case all the important information is 
stored as attachments.

Reply via email to