on 06-25-2008 7:01 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
I resolved it. You have to enable basic authentication in sharepoint, normally only windows integrated authentication is enabled.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.