cancel
Showing results for 
Search instead for 
Did you mean: 

How to get SAP Logon Ticket from Web Service.

Former Member
0 Kudos

Hi all,

I need to retrieve SAP Logon Ticket in order to pass it to the backend system. This topic was discusses in but it doesnt work because after

final String callerPrincipalName = myContext.getCallerPrincipal().getName();

final IUserFactory userFactory = UMFactory.getUserFactory();

IUser sapUser = userFactory.getUserByUniqueName( callerPrincipalName );

IUserMapping umapping = UMFactory.getUserMapping();

IUserMappingData mappingData = umapping.getUserMappingData(null, sapUser);

Properties jcoProperties = new Properties();

jcoProperties.put("jco.client.client", "001");

jcoProperties.put("jco.client.ashost", "hostname");

jcoProperties.put("jco.client.sysnr", "00");

mappingData.enrich(jcoProperties);

NoLogonDataAvailableException was thrown each time.

SAP Ticket is issued by J2EE Engine (checked by debugging)and user is logged in (checked in Security Provider -> Login Sessions)

Thanks for you help.

Best regards, Siarhei Bykau

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,S.Saravanan.

Yes, my server is configured for SSO. I have 2 web services and one call another through deployable proxy.I've set to use SAP Logon Ticket in Destinations for my proxy. And all works perfect. But I need to retrieve ticket in the scope of the first service. I know exactly that server created ticket for this user (by debugging SAPLogonTicketHelper class).

Thanks,

Siarhei Bykau

Former Member
0 Kudos

Hi,

Have you configured SSO on relevent server?. Please check it.

Kind Regards,

S.Saravanan.