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