Java使用cxf框架创建webservice接口,和使用xfile框架创建webservice接口,返回的xml信息不一致,各位大神求助!!!!
使用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注解