Ksoap2 - 多个请求参数

时间:2015-12-16 06:25:38

标签: android web-services soap ksoap2 android-ksoap2

我有以下soap请求xml文件: -

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ars="http://www.example.com/ars" xmlns:cbs="http://example2.com/cbs" xmlns:arc="http://example3.com/arc" >
<soapenv:Header/>
  <soapenv:Body>
    <ars:QueryBalanceRequestMsg>
      <RequestHeader>
        <cbs:Version>1</cbs:Version>
        <cbs:MessageSeq>12345</cbs:MessageSeq>
        <cbs:OwnershipInfo>
          <cbs:BEID>xxx</cbs:BEID>
        </cbs:OwnershipInfo>
        <cbs:AccessSecurity>
          <cbs:LoginSystemCode>xxx</cbs:LoginSystemCode>
          <cbs:Password>xxx</cbs:Password>
          <cbs:RemoteIP>127.0.0.1</cbs:RemoteIP>
        </cbs:AccessSecurity>
        <cbs:OperatorInfo>
          <cbs:OperatorID>xxx</cbs:OperatorID>
        </cbs:OperatorInfo>
        <cbs:MsgLanguageCode>xxx</cbs:MsgLanguageCode>
        <cbs:TimeFormat>
           <cbs:TimeType>xxx</cbs:TimeType>
           <cbs:TimeZoneID>xxxx</cbs:TimeZoneID>
        </cbs:TimeFormat>
      </RequestHeader>
      <QueryBalanceRequest>
        <ars:QueryObj>
          <ars:SubAccessCode>
            <arc:PrimaryIdentity>987654321</arc:PrimaryIdentity>
          </ars:SubAccessCode>
        </ars:QueryObj>
      </QueryBalanceRequest>
    </ars:QueryBalanceRequestMsg>
  </soapenv:Body>
</soapenv:Envelope>

我是新手使用SOAP,如果有人告诉我如何将这个api /或addProperty发送到android中的ksoap2库。

1 个答案:

答案 0 :(得分:0)

您可以使用wsdl here

wsdl2code代码生成(android)java