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 a comment
10|10000 characters needed characters exceeded

Related questions

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 a 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.