Retreive SAP Logon Ticket from WebService
I have created a Webservice inside the NetWeaver which again calls other Webservices on different Machines and also calls RFC Function modules in an SAP Backend System. I now want to make use of the SAP Logon Ticket. As I want to pass the logon Ticket around when calling the other Webservices and the RFCs within my Webservice I wanted to know if there is a way to retrieve the SSO Ticket of the current user within my Webservice.
A small coding example would be great.
Thanks for you help.
Maksim Rashchynski replied
One more thing. You should initialize jcoProperties:
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);