简体   繁体   English

是否可以使用jaxb2创建完整的SOAP Envelop消息?

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

I am working on Spring-WS. 我正在开发Spring-WS。 I need to send an SOAP Envelop message to some JMS Queue as soon as a request comes. 我需要在请求到来时立即向某个JMS队列发送SOAP Envelop消息。 I am using JAXB for marshaling. 我正在使用JAXB进行编组。 Is it possible to create full SOAP Envelop message using JAXB2? 是否可以使用JAXB2创建完整的SOAP Envelop消息? Also I need to use 2 XSDs, one XSD for SOAP Header part and another for SOAP Body. 此外,我需要使用2个XSD,一个XSD用于SOAP Header部分,另一个用于SOAP Body。

Let me know if its possible with JAXB2 or any other technology should be used. 如果可能使用JAXB2或任何其他技术,请告诉我。 A sample code would be highly appreciated. 我们非常感谢示例代码。

That's not the job of JAX-B. 这不是JAX-B的工作。 The full soap envelope is the job of a frontend, like JAX-WS. 完整的肥皂信封是前端的工作,就像JAX-WS一样。

You can do this with Apache CXF. 您可以使用Apache CXF执行此操作。 it has a JMS binding, it will send SOAP-over-JMS for you 它有一个JMS绑定,它将为您发送SOAP-over-JMS

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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