cancel
Showing results for 
Search instead for 
Did you mean: 

webservice & SSO in SAP portal

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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