[jboss-dev-forums] [Design of JBoss ESB] - Support marshaling or unmarshaling the soap message using

jim.ma do-not-reply at jboss.com
Mon May 19 05:42:52 EDT 2008


This feature will help use make publishing the esb services as web services more easily . 

Publishing esb services as web services can be achieved through two steps:

1. publish contract info for the esb service . 

2. convert the request soap message to a esb aware message  and deliver it ActionPipeLineProcess to process, finally  convert the response esb message to soap message and send back . 

For 1 step , we can use pojo classes to give the in/out and fault information for the esb service, for example

<actions inClass="com.foo.Request" outClass="com.foo.Response", faultClass="com.foo.Fault" jaxbAnnoIntro="anno.xml">
  | </actons>

Use JAXB and JAXB Annotaion Introduction , we can generate the schema files from these classes defined in actions attributes. Use these schema and esb service name and category information ,  wsdl contract can be constructed. 

For 2 step:  Use the JAXB and JAXB Annotation Introduction , we also can easily 
unmarshal the soap message as a request object and put it in Esb message payload to run the ActionPipeLineProcessor. 

Does XStream can do this also ?  

Appreciated your thoughts and comments .  









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

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



More information about the jboss-dev-forums mailing list