I have been trying to connect a web service that requires credentials to be accessed and have had no luck. I am using ksoap2 and I know the code works(I have used it with the local host before I put the web service on the server) I also know the server is working just fine because I made a c# program that accesses the server just fine. If someone could show me how to pass a username and password I would be very grateful.
EDIT: My issue has been fixed I am placing the code I used to fix it below.
List<HeaderProperty> headers = new ArrayList<HeaderProperty>();
headers.add(new HeaderProperty("Authorization", "Basic "+Base64.encode("Username:Password".getBytes())));
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
/
androidHttpTransport.call(SOAP_ACTION, envelope,headers);