I rewrote my web service as a SAAJ servlet. The client in this case had the 
same problem as the original web service. The cid attachment id is returned 
with enclosing < >. In order for my client to be able to locate the attachment, 
I had to add the characters to the "Content-Id" MIME header used to locate the 
attachment:

     MimeHeaders headers = new MimeHeaders() ;
     SOAPElement file = (SOAPElement)iter.next() ;
     String ref = file.getAttributeValue( soapFactory.createName( "href" ) ) ;
     ref = ref.substring( 4 ) ;
     headers.setHeader( "Content-Id", "<" + ref + ">" ) ;
     Iterator attachmentIter = reply.getAttachments( headers ) ;

where reply is the SOAPMessage response from the SAAJ servlet.

I wrote a new web service that returns a javax.xml.transform.Source object 
which is supposed to be valid for the JAX-RPC spec. The client code in this 
case can't find the attachment for the same reason.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3871700#3871700

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3871700


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to