Android Ksoap2 xml请求generaion

时间:2017-11-16 06:08:51

标签: android xml soap ksoap2

我需要知道如何在Android中创建soap请求,其下面给出了xml请求的层次结构,面临创建SOAP请求的问题。

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cus="http://siebel.com/CustomUI" xmlns:upb="http://www.siebel.com/xml/UPBGAttachmentQueryIO">
      <soapenv:Header>
    <UsernameToken xmlns="http://siebel.com/webservices">vadmin</UsernameToken>
    <PasswordText xmlns="http://siebel.com/webservices">vadmin</PasswordText>
    <SessionType xmlns="http://siebel.com/webservices">None</SessionType>
   </soapenv:Header>
   <soapenv:Body>
      <cus:UpsertAttachment_Input>
         <cus:Process_spcInstance_spcId></cus:Process_spcInstance_spcId>

         <cus:Siebel_spcOperation_spcObject_spcId>?</cus:Siebel_spcOperation_spcObject_spcId>
         <upb:ListOfUPBGAttachmentQueryIO>
            <upb:Upbgsrupdateattachmentbc>
               <upb:Id>0</upb:Id>    
               <upb:ActivityComments>Test2</upb:ActivityComments>  
               <upb:ActivityFileExt>jpg</upb:ActivityFileExt>
                  <upb:ActivityFileName>SeeTest3</upb:ActivityFileName>
                  <upb:SrNum>17110700001</upb:SrNum> 
                  <upb:ActivityFileBuffer >ecnoded64bit string </upb:ActivityFileBuffer>

            </upb:Upbgsrupdateattachmentbc>
         </upb:ListOfUPBGAttachmentQueryIO>

      </cus:UpsertAttachment_Input>
   </soapenv:Body>
</soapenv:Envelope>

快速回复将不胜感激。谢谢

0 个答案:

没有答案