- 最近
- 文章
- 代码仓
- 资源
- 问答
- 帖子
- 视频
- 课程
- 关注/订阅/互动
- 收藏

求大神看看我的cxf发布的WebService的xml文件 用soapUI测试的如何控制xml头部和节点
3年前的问题今天也遇到了 并且解决了 我决定把坑填上
这个问题在CXF官方论坛有人问过 回复如下
The specs all have that xml processing instruction thing as being optional,
mostly because it's completely redundant with SOAP/HTTP. With HTTP, the
content type already tells us that it's XML as well as the Charset. Thus,
that line is completely redundant and just a wast of bandwidth. SOAP tools
should not be requiring it.
In anycase, you CAN force CXF to output it. If you set a property of:
"org.apache.cxf.stax.force-start-document" to "true"
on the endpoint/client, it will out output that line.
URL
http://cxf.547215.n5.nabble.com/Tag-lt-Xml-version-quot-1-0-quot-encoding-quot-utf-8-quot-gt-in-the-response-td4439475.html
我测试过了 确实没问题
"org.apache.cxf.stax.force-start-document" to "true"





