Click here to Skip to main content
11,644,731 members (65,711 online)
Rate this: bad
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
Edited 14-Jun-12 3:21am
Tim Corey100.1K
Tim Corey at 14-Jun-12 9:21am
I updated the question to change NTML to NTLM.
Jaydeep Jadav at 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 at 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 at 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 at 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
0 OriginalGriff 680
1 494
2 Sergey Alexandrovich Kryukov 464
3 Afzaal Ahmad Zeeshan 418
4 CPallini 336
0 OriginalGriff 925
1 DamithSL 636
2 Afzaal Ahmad Zeeshan 622
3 Sergey Alexandrovich Kryukov 548
4 CPallini 521

Advertise | Privacy | Mobile
Web03 | 2.8.150731.1 | Last Updated 14 Jun 2012
Copyright © CodeProject, 1999-2015
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