Java使用cxf框架创建webservice接口,和使用xfile框架创建webservice接口,返回的xml信息不一致,各位大神求助!!!!

超人_不会飞 2019-05-28 05:15:43
使用cxf编写的webservice返回的xml:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:getCustomElevenResponse xmlns:ns2="http://webservice.XXX.com/">
<return>
<response1>10000201036963686009</response1>
<response2>0</response1>
<response3>06</response1>
</return>
</ns2:getCustomElevenResponse>
</soap:Body>
</soap:Envelope>

使用xfile编写的webservice返回的xml:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<ns1:getCustomElevenResponse xmlns:ns1="http://webservice.servlet">
<ns1:out>
<response1 xmlns="http://entity.servlet">10000201036963686009</response1>
<response2 xmlns="http://entity.servlet">0</response2>
<response3 xmlns="http://entity.servlet">06</response3>
<responseL1 xsi:nil="true" xmlns="http://entity.servlet"/>
</ns1:out>
</ns1:getCustomElevenResponse>
</soap:Body>
</soap:Envelope>

请问是什么原因,我用的cxf的@webservice注解
...全文
53 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

24,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Apache
社区管理员
  • Apache
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧