[jboss-user] [JBossWS] - how to return an empty http response instead of soapmessage

kukeltje do-not-reply at jboss.com
Thu Sep 6 05:14:49 EDT 2007


I'm implementing an ebMS 2.0 Message Service Handler with JBossWS 2.0.0 and related frameworks. According to the ebMS 2.0 spec, In all cases a soapmessage is received and in many cases a soapmessage has to be returned. Therefor I choose the 'message' way of communicating. However in some cases an empty response (no soapmessage, just an http 200 ok) has to be returned. First thing I tried was returning 'null' hoping that would do the trick. Unfortunately it didn't. 

I can do several things now
- do not use the 'message' way but start using the source
- try something with a soaphandler by e.g. setting the messagecontext to null
- return a basic soapmessage and write a servletfilter that deletes this if it encounters it

The first option would result in to much coding (imo), the second might not work and the last one doesn't feel 'right'

Does anybody have a different suggestion?

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

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

More information about the jboss-user mailing list