cancel
Showing results for 
Search instead for 
Did you mean: 

Authentication consuming sharepoint web services

Former Member
0 Kudos

Hi all,

I am trying to cunsume sharepoint web services from a web dynpro application using the adaptive web service model. I've followed the steps in

[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d076c662-8c0f-2b10-8ca4-e63c26e2e489]

I configured the logical destinations as described in the article using basic autentication (usernamepassword) but when I run the web service I get an authorization error. If Y put the web service url in a browser, end enter userpassword I can access the web service page correctly.

The stack trace of the web dynpro app is:

Caused by: java.rmi.RemoteException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://bfdev23/balancesheet/assets/ARI/_vti_bin/lists.asmx"; nested exception is:

com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://bfdev23/balancesheet/assets/ARI/_vti_bin/lists.asmx"

at ListsSoapStub._invoke(ListsSoapStub.java:115)

at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DInterfaceInvokerImpl.invokeOperation(DInterfaceInvokerImpl.java:63)

at com.sap.tc.webdynpro.model.webservice.model.WSGenericModelClassExecutable.execute(WSGenericModelClassExecutable.java:62)

... 33 more

Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://bfdev23/balancesheet/assets/ARI/_vti_bin/lists.asmx"

at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:980)

at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1430)

at ListsSoapStub._invoke(ListsSoapStub.java:106)

... 35 more

Any ideas??

Thanks,

Diego.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Diego,

I too faced this problem .. After many attempts i was unable to resolve this if I use basic authentication . As you said , I was also able to access tht from my browser.

The username and password should be configured in Visual Administrator.

You can refer to the following link to get more information on this :

http://help.sap.com/saphelp_nw04s/helpdata/en/f8/7889ce12924273a379c1c590675573/frameset.htm

Former Member
0 Kudos

Hi,

Thanks for your answer. The link I mentioned in the previous post already descrubed how to set username and password in the logical destination using basic authentication, but as I said it does not work for me.

Do you know if using SSO I can make this work ?

Thanks,

Diego.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi All,

I resolved it. You have to enable basic authentication in sharepoint, normally only windows integrated authentication is enabled.

Former Member
0 Kudos

Hi Diego,

I have a small doubt if you windows integrated authentication that can be enabled withintranet only...But i want to enable on the external portal then what could be the procedure.Please can you help on this?If I am wrong plz can you guide me onto the right track...

Thanks

Ravi