Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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.
 
ice is for people that are not already cool. Chill with this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic