【发布时间】:2014-05-28 18:39:51
【问题描述】:
我现在正在开发我的 web 服务(我使用 jax ws、jboss 应用程序服务器版本 4.0.4、EJB 来实现 web 服务),当我开始与将要使用它的人一起测试我的 web 服务时,所有对我来说没问题,但在他们的软件中有错误
{"The content type text/xml;charset=UTF-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly}.
对我来说,我的 Web 服务使用的是 soap 1.1 而不是 soap 1.2,是否可以通过我班级的 jax ws 注释来设置它?我找到了@BindingType 注释并尝试在我的EJB 类中使用@BindingType(SOAPBinding.SOAP12HTTP_BINDING),但是wsdl 仍然和以前一样并且内容类型没有改变。非常感谢
【问题讨论】:
标签: java jboss ejb jax-ws exchangewebservices