I wrote a program(TrySend1) to test attachment with saaj
TrySend1 call the servlet(TryReceive1) and TryReceive1 return a
soap message with attachment to it .
but In TrySend1 program , it can't see any attachment at all .
(p.s.I am sure that I add the attachment to the soap message response. because msg.countAttachments() return 1 )
following is my code
[ October 13, 2007: Message edited by: mojo lai ] [ October 13, 2007: Message edited by: mojo lai ]
Joined: Mar 22, 2005
In cases like these it's useful to examine the SOAP that gets sent over the wire. Either a tool like tcpmon (comes with Axis) can show it, or you could save the server response to a file before sending it, and examine its contents.