Android how I can parse and consume webservices?

563 views Asked by At

How I can parse this type of webservices in android? Kindly see the below images. I created this webservices in .net, now I want to parse and consume that Login webservice in Android. Kindly anyone help it would be highly appreciated. Thanks

SOAP 1.1

 The following is a sample SOAP 1.1 request and response. The placeholders shown need to be  replaced with actual values.

POST /Service.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/Login"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
 <Login xmlns="http://tempuri.org/">
  <username>string</username>
  <password>string</password>
  <apptypecode>string</apptypecode>
  </Login>
 </soap:Body>
</soap:Envelope>

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

 <?xml version="1.0" encoding="utf-8"?>
 <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
 <soap:Body>
 <LoginResponse xmlns="http://tempuri.org/">
  <LoginResult>string</LoginResult>
 </LoginResponse>
 </soap:Body>
 </soap:Envelope>
1

There are 1 answers