cancel
Showing results for 
Search instead for 
Did you mean: 

WebService Model and SAP Logon Ticket

Former Member
0 Kudos

I created a WD Application which uses a WebService Based Model. The WebServices use Authentication so I configured the Logical Ports to use HTTP Authentication with "Use SAP Logon Ticket".

On the WebService side HTTP Authentication and "Use SAP Logon Ticket" are enabled in the Web Service Configurations. I do not use any Operation Authorization nor Document Security. When doing the request I get a HTTP 401 Error back.

I also tried to add an HTTP Destination and set that HTTP Destination just before the modelObject.execute() with modelObject._setHTTPDestinationName("MY_DESTINATION") method. This didn't change anything.

When I add modelObject._setUser(SERVICE_USER) and modelObject._setPassword(SERVICE_PASSWORD) then the requests work and the application works fine.

Is there any additional configuration step to consider?

Is there any way to trace the WebService Request and verify if WD sends the SAP Logon Ticket?

Is there a known limitation with NetWeaver 2004s?

Did I miss something?

Technical Details:

SAP NetWeaver J2EE Engine 2004s (7.0.0) on MaxDB

SAP NetWeaver Developer Studio 2004s (7.0.0)

Any help, hints or links are more than appreciated.

Regards, Mirko

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I have exactly the same problem.

Any ideas?

Former Member
0 Kudos

Try to include the Security Libraries (com.sap.security.api.jar) in your Web Dynpro Project.

This helped on my side.

Regards, Mirko

former_member182372
Active Contributor
0 Kudos

Hi Mirko,

Did you set WD application`s property "sap.authentication" to "true"?

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hi Maksim

Yes this property is set to true and I get a Logon Screen.

Thanks and Regards

Mirko