Hi Brad

I'm not sure why application/json ends up being the media type passed to the provider. I'll have a look these weekends...There's likely to be some flaw in the way media types are matched on the outbound chain, it might've been already fixed in my private snapshot. Perhaps setting an explictit Accept : application/atom+xml might help

About xhtml. Aport from updating the actual Atpm provider to handle application/xhtml+xml, another possibility is to deal with the application/atom+xml only but in your code, where you create the feed, you can add a feed/content element with the type "xhtml" and the Atom-aware browser will display it even if the content type of the response will be application/atom+xml

Cheers, Sergey

Sergey,

the accept header is */*. I'm setting the media type on the response
with  builder.type("application/atom+xml");. Is it intended for the
media type set in a Response to reach the provider or does it get a
different one based on the request headers?

Will try the abdera tip and see if that helps..

Thanks,
Brad.

On Thu, Jun 19, 2008 at 5:08 PM, Sergey Beryozkin
<[EMAIL PROTECTED]> wrote:
Hi,

Try creating entry first and then adding it to the feed. It might be worth
trying to do it in a simple mainline code and then try to
use Abdera to (de)serialize the feed you just created...

About the other problem you're seeing...
What is the Accept header's value ? Does it contain application/json by any
chance ?

Cheers, Sergey


Ok I just tried submitting the same URL straight from TCPMon (cURL
didn't like the & in the query string for some reason). The request
was only performed once and this time it didn't hide the root cause:

INFO: Interceptor has thrown exception, unwinding now
org.apache.abdera.parser.stax.FOMException:


Looks like I've not populated my Feed object correctly.


----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

Reply via email to