cancel
Showing results for 
Search instead for 
Did you mean: 

Web Service Client in WebDynPro and SAP Logon Ticket

Former Member
0 Kudos

Hello,

I have a web service enabled EJB application running on WAS 6.40 SP9 and a WebDynPro client application using this web service (imported as a web service model). Both are running on the same app server.

The problem is that I want to secure the web service and need user credentials to access some backend functions, therefore I think the best way is to authenticate against the web service using SAP Logon ticket created when the user authenticates on the webdynpro logon screen.

By no means I have been able to make it work, so far all I can do is set the web service for HTTP basic authentication and pass a fixed user id and password from webdynpro. This is not what I need.

Documentation is very limited about using SAP Logon ticket with web services and did not find any example to realize this from WebDynPro.

Can anybody give some guidelines on how to achieve this and / or where to look for how to's?

Thanks in advance!

Regards,

Vitaliano

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

There is enough info about Webservices in SDN please go through the follwoing links,meanwhile let me know your specific problem(bit elobarate)

https://www.sdn.sap.com/sdn/developerareas/webservices.sdn?node=linkDnode6-1.

Particularly useful might be

1) the recordings of last year's TechEd workshops (contain overview sections as well as demos): https://www.sdn.sap.com/sdn/events.sdn?page=teched04_sessions.htm. Choose "ABAP Development" (resp. "Java Development") --> "Intermediate Courses" --> "Utilizing Web Services with ABAP (resp. Java) and SAP Web Application Server"

2) the e-learning section: https://www.sdn.sap.com/sdn/developerareas/webservices.sdn?page=el_ws.htm

Regards

RK

Answers (2)

Answers (2)

Former Member
0 Kudos

Sorry for keeping this topic "hot" but is there somebody that can answer ? SAP experts?

Regards

Former Member
0 Kudos

Hi Vitaliano

Questions ?

What error do you get when you attempt to call the Web Service?

Have you set the "ticket" template for creation so web Dynpro can create logon tickets

Regards

Pran

Former Member
0 Kudos

Pran,

I am not sure I understand what you mean. Is that something I have to set with Visual Administrator in security roles? Can you give me an example?

Please note that I can see the SSO cookie both when I login to the portal and/or when I access my webdynpro application directly.

Regards,

Vitaliano

Former Member
0 Kudos

I forgot to say that SSO Ticket generation works perfectly between SAP Portal and WebDynPro. Just can't pass it over to web service.

I tried almost any combination of authentication settings both on the web service side and in the imported model in webdynpro client application.

Any advice really appreciated!