wood burning stoves*
The moose likes Web Services and the fly likes Sharepoint Webservice call from Java Client returns 403-Forbidden Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Sharepoint Webservice call from Java Client returns 403-Forbidden" Watch "Sharepoint Webservice call from Java Client returns 403-Forbidden" New topic
Author

Sharepoint Webservice call from Java Client returns 403-Forbidden

Chatz Pat
Greenhorn

Joined: Jul 23, 2012
Posts: 1
Hi

I need to call a Microsoft sharepoint(2007) .net webservice from Java Client.

Calling the webservice from SOAP UI works fine but when called from Java client it gives error -

403-Forbidden - server denied specified URL. Contact Administrator

I am using Basic Authentication and the same is enabled on IIS server

The request sent through SOAP UI is



and the request sent through Java client is (using TCPmon)




A major difference between two is 'Authorization: Basic Y3RzXDIzNTg5NjpqdW5fMTk4NQ==' which is being passed from java client and not from SOAP UI.

i am passing authentication credentials via SOAP UI as well.



also, if i check attribute 'Add authentication information to outgoing request' in SOAP UI preference, it adds 'Authorization:Basic **==' in the request. and this particular request then is giving error.

from client code, if i remove username/password settings, it does not add Authorization in request (as with SOAP UI) but still giving the same error.

what can be the possible solution for this ??

Note: Java client is created by Eclipse-Webservice-Webservice Client providing wsdl

Thanks in Advance
 
 
subject: Sharepoint Webservice call from Java Client returns 403-Forbidden