Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling a SharePoint Web Service using dynamic invocation procedure with NTLM authentication?

 
Praveen Kumar Jayaram
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am trying to call a SharePoint web service from Java using dynamic invocation procedure. But am not sure how to plugin NTLM to this piece of code.
I have done this successfully by creating stub (Axis 2) but this requires many jar dependencies. Hence to reduce the dependency, am trying DII methodology.

Not finding a way because NTLM auth is set on stub usually and don't have any stub in DII.
Kindly suggest me a way to use NTLM authentication with this, (please find the code below)





Above piece of code gives error: (401) Unauthorized

Meanwhile I tried another technique by using Apache Commons HttpClient (by calling getMethod)...But this gives me text/HTML response which would be rendered in browser.
Is there a way to call a specific method like Status() on web service??

I have pasted this code too,



Thanks a bunch in advance.
 
Praveen Kumar Jayaram
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Kindly someone throw light on this issue.

Thanks in advance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic