cancel
Showing results for 
Search instead for 
Did you mean: 

How to read the http response of a WDA application ?

Johnny_B_
Active Participant
0 Kudos

Hello Web dynpro ABAP experts,

In a given WDA application I need to read the http response before it gets sent to the browser.

This was very simple in BSP, where the response was presented as string with the get_cdata method of the response object.

I am looking for something similar in WDA.

The reason is: If I have the response I can save it to the database, it will then be an exact representation of the page at the moment it was saved. We use this in BSP applications for snapshots of reports. The saved response can easily be retrieved and sent to the browser again. Now the newer reports are coded in WDA, so I want to check if it can be done here, too.

Thank you,

Johannes

Edited by: Johannes Bacher on Jan 13, 2010 11:24 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

This is not possible. First of all Web Dynpro uses a sophisticated set of JavaScript and AJAX to inject new content into the page. You don't have a complete page on each response. So even if the response object was exposed, it wouldn't give you the complete content as you describe. Also the rendering libraries are very complex for WDA. This is just simple HTML output and can be viewed statically.

Furthermore, SAP doesn't allow access to the request or response object. Web Dypnro is designed to be rendering technology abstract. For instance you can output Web Dynpro using a SmartClient renderer. Then the response object only contains an XML stream that describes the user interface.

Johnny_B_
Active Participant
0 Kudos

thank you thomas.