The hole stuff is packaged as an EAR file and deployed on WebLogic 11g. The JAX-RS stack is Apache Jersey 1.9 which comes with the app server. Using another release of Jersey than the one comming with the app server is not an option.
Calling the endpoint as shown above raises HTTP 415 Unsuported Media Type. here is the console log.
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36
Request Payloadview source
{params1: ["DynamicBundle"], params2: ["en"]}
params1:["DynamicBundle"]
params2:["en"]
Calling the endpoint from an equivalent JAX-RS client works properly. What coud be the problem here ?
Many thanks in advance,
Nicolas
Lucas Lacroix
unread,
Aug 25, 2017, 8:35:01 AM8/25/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Angular and AngularJS discussion
You need to set the content type appropriately. It looks like you're sending JSON but leaving the default content type of "text/plain" which your server does not appear to support.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Angular and AngularJS discussion
I thought that application/json was the default value as I have different other cases where I don't have to specify it explicitly. But yeah, it works, thanks.