简体   繁体   中英

Is it possible to create a full SOAP Envelop message using jaxb2?

I am working on Spring-WS. I need to send an SOAP Envelop message to some JMS Queue as soon as a request comes. I am using JAXB for marshaling. Is it possible to create full SOAP Envelop message using JAXB2? Also I need to use 2 XSDs, one XSD for SOAP Header part and another for SOAP Body.

Let me know if its possible with JAXB2 or any other technology should be used. A sample code would be highly appreciated.

That's not the job of JAX-B. The full soap envelope is the job of a frontend, like JAX-WS.

You can do this with Apache CXF. it has a JMS binding, it will send SOAP-over-JMS for you

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM