axis2 WebService 請求參數xml格式


方法定義

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>


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM