方法定义

public class GetBillInfoService {

public String getBillList(String xmlData, String temp ){}

传入接口的xml

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" // 固定写法
xmlns:ser="http://service.cn.xx.com"> // 定义命名空间,标记类路径
soapenv:Header/
soapenv:Body
ser:getBillList // 该标签,指示调用接口的哪个方法,标签名与方法名相同
ser:xmlData11 // 第一个方法参数对应的标签,没有ser:xmlData11标签,会导致第一个参数接收失败,这个标签顺序标记方法的参数位置
liub]]>
</ser:xmlData11>
ser:xmlData12 // 第二个方法参数(String temp)对应的标签
liub0<15]]>
</ser:xmlData12>
</ser:getBillList>
</soapenv:Body>
</soapenv:Envelope>

 posted on 2020-04-26 18:00  倾目  阅读(1272)  评论(0)    收藏  举报