I added attachment manually with 

for(int att=0;att<ids.length;att++){
String id = ids[att];
jaxMessage.addDataHandler(req.getAttachmentMap().getDataHandler(id),id);
}

and seems that also saajMessage have them.

now if i write the message with saajMessage.writeTo(System.out) i get
only the envelope and not the attachment...

why?

thx, Lorenzo


On mar, 2007-10-09 at 16:33 +0200, Lorenzo wrote:
> Hi all,
> 
> I tryed to convert from 
> org.apache.axis2.context.MessageContext
> to 
> org.apache.axis2.saaj.SOAPMessageImpl 
> passing by 
> org.apache.axis2.jaxws.message.impl.MessageImpl
> 
> 
> 
> Using 
> org.apache.axis2.jaxws.message.impl.MessageImpl jaxMessage = 
>       (org.apache.axis2.jaxws.message.impl.MessageImpl) 
> org.apache.axis2.jaxws.message.util.MessageUtils.getMessageFromMessageContext(reqMessageContext);
> 
> jaxMessage has no attachments (reqMessageContext had 2 attachments)...
> 
> I miss something or its bugged?
> 
> Thx,
> Lorenzo
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to