Skip to Content
author's profile photo Former Member
Former Member

How to get SAP Logon Ticket from Web Service.

Hi all,

I need to retrieve SAP Logon Ticket in order to pass it to the backend system. This topic was discusses in retreive-sap-logon-ticket-from-webservice 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

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2006 at 02:06 PM

    Hi,

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

    Kind Regards,

    S.Saravanan.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2006 at 02:26 PM

    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

    Add comment
    10|10000 characters needed characters exceeded