-
1. Re: A web service which returns data + SOAP attachment
johnr1111 Nov 30, 2005 9:21 AM (in response to gennadip)The issues regarding file trasfer are numerous and painful.
Microsoft promoted DIME, knowing that it probably woudn't fly.
Sun Promoted Mime attachments and has gone with the SWA.
Now there seems to be a push towards MTOM, which I hope will be picked up by the JBOSS implementation shortly, as we are also needing it.
The interesting thing about MTOM, is appears that you just deal will returning byte arrays or native return types. The MTOM functionality appears to get turned on external to the code and will autmatically optimize the soap message, moving portions of the data outside the soap message as an attachments.
I unfortunately haven't answered the question you asked by wanted to share yet another option. MTOM was released on the Micrsoft side and appears to be on the list for JBoss. I'm on a project that will require its abilities shortly. -
2. Re: A web service which returns data + SOAP attachment
jason.greene Dec 2, 2005 2:08 PM (in response to gennadip)The current JBoss 4.x stack support SwA (SOAP With attachments). SwA is technically not valid for literal encodings because it adds empty tags with an href attribute (this validates the literal schema). That said, the 4.0 stack will still let you use them with literal types. So if both your client and server components are jboss you should have no problems. Also, I believe Axis allows SwA over literal as well.
The new stack (should be released soon) has support for AP 1.0, which fixes the literal encoding problem.
We have MTOM on our roadmap, it will also be added, but after the first release of the new stack.
I understand your frustrations and unfortunately the disgreements between vendors regarding attachments has delayed the technology, and thus caused headaches for the user.
The good news is that everyone has agreed on MTOM, its just a matter of everyone adding support for it.
-Jason -
3. Re: A web service which returns data + SOAP attachment
gennadip Dec 4, 2005 5:57 PM (in response to gennadip)Thanks for replies.
I did some additional investigation, testing and would like to conclude the issue. It looks like it is impossible to use JWSDP + JBoss 4.0.3 to return to a client a SOAP message with some data and binary attachment.
If somebody did succeed to do it please correct me. I will be happy to get to know that I?m wrong! -
4. Re: A web service which returns data + SOAP attachment
gennadip Dec 4, 2005 9:28 PM (in response to gennadip)Sorry, I?d like to correct myself.
My previous post should be more specific: ?It looks like it is impossible to use JAX-RPC + JBoss WS to return to a client a SOAP message with some data and binary attachment.?
But it is possible to do if the web service is implemented as a servlet that parses request and creates response using SAAJ. -
5. Re: A web service which returns data + SOAP attachment
anil.saldhana Dec 5, 2005 10:36 AM (in response to gennadip)The wsdl that is generated by jwsdp may have to be manually edited to add the mime header settings in the wsdl:bindings.