1

I am trying to create soap request in android but not able to get how to generate this.

I have gone through following URL:- url-1 url-2

but not able to understand how to create soap request like this.

 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"   xmlns:stal="http://ws.soapwebserv.com/Info">
  <soapenv:Header>
 <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis- open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
 <wsse:UsernameToken wsu:Id="UsernameToken-30" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
 <wsse:Username>alias101@soapwebserv.com</wsse:Username>
  <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">somesecurepassword</wsse:Password>
 </wsse:UsernameToken>
 </wsse:Security>
 </soapenv:Header>
 <soapenv:Body>
  <stal:InfoRequest>
 <token>randomtokenrandomtoken</token>
 </stal:InfoRequest>
</soapenv:Body>
</soapenv:Envelope>

please help me out guys... I am new to Soap. :(

Community
  • 1
  • 1
dev_android
  • 493
  • 1
  • 11
  • 29

1 Answers1

0

simple way is to copy the entire soapenvelope in raw folder as xml file and pass your username ,password and token with help of pattern matching . Now you have the entire request in the form of string pass the request to httppost method.let me know that helps your issue.

RanjitRock
  • 1,421
  • 5
  • 20
  • 36