webservice有关application/xop+xml的异常
2017-07-07 09:05
465 查看
今天同事调用一个webservice时返回类似错误
搜索找到这个地方
http://stackoverflow.com/questions/10496186/error-consuming-webservice-content-type-application-xopxml-does-not-match-ex
原来只需修改配置的编码方式为“Mtom”就能解决问题
响应消息的内容类型 multipart/related; type="application/xop+xml"; boundary="uuid:026bd32a-6fb3-45a6-8559-fe68024bfe2a"; start="<root.message@cxf.apache.org>"; start-info="text/xml" 与绑定(text/xml; charset=utf-8)的内容类型不匹配。如果使用自定义编码器,请确保正确实现
搜索找到这个地方
http://stackoverflow.com/questions/10496186/error-consuming-webservice-content-type-application-xopxml-does-not-match-ex
原来只需修改配置的编码方式为“Mtom”就能解决问题
<configuration> <system.serviceModel> <bindings> <basicHttpBinding> <binding messageEncoding="Mtom"> </binding> </basicHttpBinding> </bindings> </system.serviceModel> </configuration>
相关文章推荐
- webservice有关application/xop+xml的异常
- spring applicationContext.xml namespace 异常问题
- 有关对webservice返回的XML文档的改进
- webservice中服务端applicationContext.xml中配置发布服务
- 异常解决 java.io.FileNotFoundException: class path resource [spring/applicationContext_*.xml]
- WebService异常(一)__javax.xml.ws.Endpoint.publish()
- 启动tomcat服务时,报解析/WEB-INF/applicationContext.xml异常或找不到该文件
- applicationContext.xml文件中的异常: Attribute : name The name of the property, following JavaBean naming c
- 异常------>类路径初始化异常(classpathxmlapplicationcontext)
- webservice(四)有关xml的操作(基于JAXBContext 的xml和对象的转换)
- 调用Axis WebService异常:org.xml.sax.SAXException: Bad envelope tag: definitions
- 异常: IOException parsing XML document from ServletContext resource [/WEB-INF/applicationContex
- 记录一次mac+idea+springmvc开发的applicationContext.xml读取文件找不到异常处理
- WCF学习问题之:响应消息的内容类型 multipart/related; type="application/xop+xml"……
- 异常:The absolute uri: http://www.springframework.org/security/tags cannot be resolved in either web.xml or the jar files deployed with this application
- Spring 2.0.8 和 2.5 applicationContext.xml 头文件写法 Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'
- 关于java调用webservice异常 the char 'ox1e' after '' is not a valid xml character
- 异常解决 java.io.FileNotFoundException: class path resource [spring/applicationContext_*.xml]
- Client found response content type of 'multipart/related; type="application/xop+xml"; start="<soap.x
- XML+Application来编写计数器(一)