使用cxf进行webservice开发
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:com="http://com.test.demo" xmlns:sig="http://com.test.demo/business/counter/SignService">
<soapenv:Header>
<com:RouteInformation>
<com:Ip>?</com:Ip>
<com:MAC>?</com:MAC>
<com:Addr>?</com:Addr>
</com:RouteInformation>
</soapenv:Header>
<soapenv:Body>
<sig:getUser>
<!--Optional:-->
<sig:getUserData>
<sig:userReq>
<sig:name>?</sig:name>
<sig:sex>?</sig:sex>
<sig:addr>?</sig:addr>
<sig:age>1</sig:age>
</sig:userReq>
<sig:traceNo>?</sig:traceNo>
</sig:getUserData>
</sig:getUser>
</soapenv:Body>
</soapenv:Envelope>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:com="http://com.test.demo" xmlns:sig="http://com.test.demo/business/counter/SignService">
<soap:Header>
<com:RouteInformation>
<com:Ip>?</com:Ip>
<com:MAC>?</com:MAC>
<com:Addr>?</com:Addr>
</com:RouteInformation>
</soap:Header>
<soap:Body>
<sig:getUserResponse>
<sig:UserReqData>
<sig:userRes>
<sig:resName>12</sig:resName>
<sig:resSex>ok</sig:resSex>
<sig:resAge>11</sig:resAge>
</sig:userRes>
<sig:ResponseType>N</sig:ResponseType>
<sig:ResponseCode>00000</sig:ResponseCode>
</sig:UserReqData>
</sig:getUserResponse>
</soap:Body>
</soap:Envelope>
上述soap消息包含SOAP包络、SOAP头
、SOAP主体。并且SOAP头和SOAP主体使用不同的命名空间。- Fork 本仓库
- 新建 Feat_xxx 分支
- 提交代码
- 新建 Pull Request