Meaningless Drivel is fun!*
The moose likes Web Services and the fly likes Calling a SharePoint Web Service using dynamic invocation procedure with NTLM authentication? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Calling a SharePoint Web Service using dynamic invocation procedure with NTLM authentication?" Watch "Calling a SharePoint Web Service using dynamic invocation procedure with NTLM authentication?" New topic
Author

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

Praveen Kumar Jayaram
Ranch Hand

Joined: Jul 14, 2008
Posts: 56
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
Praveen Kumar Jayaram
Ranch Hand

Joined: Jul 14, 2008
Posts: 56

Kindly someone throw light on this issue.

Thanks in advance.
 
jQuery in Action, 2nd edition
 
subject: Calling a SharePoint Web Service using dynamic invocation procedure with NTLM authentication?
 
Similar Threads
Problem in passing parameters through java client to .Net WS
STUB, Dynamic Proxy, DII
Whether JAX-RPC Calls are supported from a Portlet?
JWSDP, DII Client and method returning complex type(edit)
Running a DII client through JSP