Click here to Skip to main content
12,949,816 members (70,654 online)
Rate this:
Please Sign up or sign in to vote.
Hello guys,
I am an android developer.
I am developing apps with server side (admin side) in Microsoft technology and communicate via KSOAP library to android and Server side web service.

These all working fine in all my apps. I just stuck in the issue when my web service need to authenticate using Microsoft server active directory (NTLM).

Is there any way to provide the NTLM credential in KSOAP request.

I really need help for this.
Posted 14-Jun-12 2:57am
Updated 14-Jun-12 3:21am
Tim Corey118.7K
Tim Corey 14-Jun-12 9:21am
I updated the question to change NTML to NTLM.
Jaydeep Jadav 14-Jun-12 9:31am
Thanks dear..

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I believe this blog post will help you out:[^]

This came from this question on Stack Overflow:[^]

I did look for an example directly from KSOAP, and this is what I found:!topic/ksoap2-android/6lfFGIH0wE4[^]
Jaydeep Jadav 14-Jun-12 9:29am
Hey Tim , Thanks for quick response.
I already tried first and second link you had given but in that method they are using HttpClient and generate the SOAP xml in String or String Builder.

I need to do this in KSOAP library.

Thanks and Regards
Tim Corey 14-Jun-12 9:31am
Well, as the last link states, even the person who maintains KSOAP isn't sure if that is possible. Sorry, but that is all I've got.
Jaydeep Jadav 14-Jun-12 9:35am
Yah, i just checked that. Now only option to use the jcifs for authentication in HttpClient.

Thanks Tim.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 5,749
CHill60 3,380
Maciej Los 2,953
Jochen Arndt 1,935
ppolymorphe 1,820

Advertise | Privacy | Mobile
Web02 | 2.8.170524.1 | Last Updated 14 Jun 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100