方法定義
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>標簽,會導致第一個參數接收失敗,這個標簽順序標記方法的參數位置
<![CDATA[ // 沒有<![CDATA[ ,會導致接口方法的第一個參數解析失敗
<para><userName>liub</userName></para>]]>
</ser:xmlData11>
<ser:xmlData12> // 第二個方法參數(String temp)對應的標簽
<![CDATA[
<para><userName>liub</userName><billKeyword></billKeyword><queryType>0</queryType><<pageSize>15</pageSize><Column></Column></para>]]>
</ser:xmlData12>
</ser:getBillList>
</soapenv:Body>
</soapenv:Envelope>