• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Kindly someone throw light on this issue.

Thanks in advance.
 
Not looking good. I think this might be the end. Wait! Is that a tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic