on 12-12-2006 2:25 PM
Hi,
I have created a webservice with basic authentification in my ABAP SAP backend.
Now I like to use this webservice at my Java Web Dynpro application in SAP Portal. SSO (or is it SAP Logon-Ticket?) for the portal is set up correctly. I tested it with a SAP transaction iView that now doesn't need an addition logon.
In the Web Dynpro application I added the webservice as a model.
At project properties a also added tcsecwssec~service in the "Service references" tab.
If I manually add username/pw the webservice works fine.
._setUser("user");
._setPassword("pw123456");
But I like to use Single Sign On (SSO) for calling the webservice. How can I reach this?
I also searched the Forum but none of the tested workarounds worked for me.
Calling the webservices results in this exception:
Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.
Thanks a lot.
Henning
ok, I found the solution on my own.... it's easy 😄
I had to define a HTTP destination for my webservice in Visual Administrator:
(Services -> Destionations -> HTTP)
Then only add the destination in the custom controller:
setHTTPDestinationName("ZDEMO_SERVICE");
Henning
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.