title: Webservice Http Authentication - KSOAP2 on Android
body: <p>I have been searching the web for a while now, but wasn't able to find a appropriate solution for my problem. This article does not really help either, because the classes and methods used are not present in ksoap2 for android: <a href="https://stackoverflow.com/questions/5177939/basic-http-authentication-using-ksoap-for-android">Basic HTTP authentication using KSOAP for android</a></p>
  
  <p>I am trying to access a SAP webservice, which I set up in the sap soa manager. The webservice requires basic authentication in the http header. Accessing this web service by soapUI is not a problem, because it is possible to set up http authentication there.</p>
  
  <p>My Problem:
  I want to access the web service with a android device and I want to use KSOAP2 for Android because I already have some experience with that libary. My problem is that I don't know how to authenticate to the webservice? </p>
  
  <p>Has anyone had a similar problem and knows how to solve it?
  I would be grateful if you could help me!</p>