cancel
Showing results for 
Search instead for 
Did you mean: 

JCO, SAP ticket and web service

Former Member
0 Kudos

Hi all,

We have design a web service in Java and deployed it on WAS. This web service internally calls a rfc using a JCo.

Its easy to make a web service secure using SAP logon ticket.

Its easy to pass sap log on ticket to JCo and validate user in R/3.

but in the code (i.e. in the EJB or java class) of the web service SAP log on ticket is unavailable because web service container accepts the ticket and validates the user but this ticket is not passed to ejb or java class.

So how to provide single sign on using SAP ticket for JCo.

Is there any way we can get sap logon ticket from Web service container.

or weather we have to use some other way to expose rfc as web service using WAS.

I know we can directly expose RFC or BAPI as web service in ABAP stack. but we want it to through EJB.

Accepted Solutions (0)

Answers (1)

Answers (1)

martijndeboer
Advisor
Advisor
0 Kudos

Hi,

starting with SP12, the J2EE destination service will also support RFC connections.

It allows configuration of authentication (password, SAP Logon Ticket, SNC) and technical connection settings (system, client,...) through the Visual Administrator.

In you code you can do an JNDI lookup to the destination service, get the destination and retrieve the JCO properties. In case SAP Logon Tickets are configured, these are automaitally included in the JCO properties.

You may use RFC destination in any piece of Java code: EJB, Java classes etc.

Best Regards,

Martijn