-
1. Re: SOAP with Attachment in JBoss 4.0.4 GA
ericjava Feb 11, 2008 1:51 AM (in response to sarin_ashish)I'm wondering the same thing, except I'm using AS 4.2.2, and can switch to 5.0 if it makes it easier. Thanks.
-
2. Re: SOAP with Attachment in JBoss 4.0.4 GA
asoldano Feb 11, 2008 4:58 AM (in response to sarin_ashish)Sure, it's possible.
For JBossWS 4.0.4 please refer to the legacy JBossWS documentation http://jbws.dyndns.org/mediawiki/index.php?title=JAX-RPC_User_Guide (see. sections on SOAP with Attachments and MTOM/XOP.
For JBossWS 4.0.5 and above, it's better to use the current JBossWS and jax-ws; please refer to the attachments' section of the user guide http://jbws.dyndns.org/mediawiki/index.php?title=User_Guide#Attachments.
You might also find this interesting, even if the mentioned sample's bits haven't been released yet: http://jbws.dyndns.org/mediawiki/index.php?title=Security_and_attachments_sample -
3. Re: SOAP with Attachment in JBoss 4.0.4 GA
sarin_ashish Feb 11, 2008 11:21 AM (in response to sarin_ashish)I am getting exception when I follow whats mentioned in the User Guide:
2008-02-11 21:45:59,854 DEBUG [org.jboss.ws.jaxrpc.encoding.JAXBSerializer] serialize: [xmlName=result,xmlType={http://org.jboss.ws/reports/rpcstyle/types}FileAttachment]
2008-02-11 21:45:59,854 ERROR [org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper] SOAP request exception
javax.xml.rpc.JAXRPCException: Cannot create or send response message
at org.jboss.ws.server.ServiceEndpoint.postProcessResponse(ServiceEndpoint.java:311)
at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:236)
at org.jboss.ws.server.ServiceEndpointServlet.doPost(ServiceEndpointServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
Is there any example available which shows how in JBoss 4.0.4 attachments are received on the client side ?
thanks
Ashish