cancel
Showing results for 
Search instead for 
Did you mean: 

How Web Dynpro supports RSS (ATOM)?

Former Member
0 Kudos

Let's image to generate our feed (RSS/ATOM) via java classes or xslt; now how is it possibile to expose it to the end-user?

From the development point of view it is similar to expose other Web Dynpro UI and it would be nice to use the same "prospective" and project also for this kind of comunication method...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Sergio,

What is so special about RSS/ATOM? It's just special XML format. So you can either:

1. Parse XML directly (SAX / DOM) in WebDynpro application and construct contex value nodes

2. Use some Java <-> XML mapping tool (JAXB or Jakarta Commons Digester) for mapping, then create JavaBean model and use model nodes with generated model classes.

VS

SergioFerrari
Active Contributor
0 Kudos

Valery, thanks for the replay.

I agree with you: "nothing of special about RSS/ATOM and

No problem also building the XML object".

Let me try again:

- user contacts the url of the WD application

- the system should response just with the RSS xml data and not with UI objects (tableView, textEdit, ...)

But the WD does not allow you "to send out raw XML" even "send out raw HTML".

It allows "only" to build nice UI via objects it knows.

When you say "construct contex value nodes" do you mean that you are able to replay with the raw XML data?

Are you really able to response to a browser as the following url https://forums.sdn.sap.com/rss/rssmessages.jsp?threadID=75910

does? (It is the feed of this post)

Sergio

Former Member
0 Kudos

Sergio,

Then you had stated your question not exactly

WD is UI presentation technology, and is not suitable here.

Use regular J2EE Web Application and return RSS feed via servlet.

VS

Answers (1)

Answers (1)

Former Member
0 Kudos

For displaying RSS feeds in a Web Dynpro view, you can

1. parse the RSS feed using any available RSS parser

2. implement a Web Dynpro component that builds a context from the received feeds and dynamically builds a view from these data.

I implemented such a thing a while ago for a prototype using the free RSS parser from Sun.

Armin

SergioFerrari
Active Contributor
0 Kudos

Dear Armin,

thanks a lot for the replay. Let me try again:

I want to publish a feed not display an existing one.

Image that you are developing the web site of a newspaper..

Sergio