| Summary | REST webservice implementation method for type application/x-www-form-urlencoded is no longer being invoked |
|---|---|
| Article Number | 17801 |
| Environment | All Supported Operating Systems Artix 5.5 |
| Question/Problem Description | REST webservice implementation method for type application/x-www-form-urlencoded is no longer being invoked REST webservice implementation method containing a java.util.Map parameter is no longer invoked after upgrading to Artix 5.5.0.16 |
| Clarifying Information | |
| Error Message | |
| Defect/Enhancement Number | |
| Cause | Using Artix 5.5.0 GA the REST webservice implementation method outlined below is invoked. However after upgrading to Artix 5.5.0.16 this operation is no longer being invoked.
@POST @ProduceMime(MediaType.APPLICATION_XML) @ConsumeMime(MediaType.APPLICATION_FORM_URLENCODED) @Path("NotificationManagerService/REST_v0_91/proxy") public Response createNotifications(final Map<String, List<String>> formParams) { … }
Artix 5.5.0 GA maps the form data "application/x-www-form-urlencoded" to an operation parameter of type java.util.Map<String, List<String>>. Artix 5.5.0.16 maps "application/x-www-form-urlencoded" to an operation parameter of type javax.ws.rs.core.MultivaluedMap<String, String>.
|
| Resolution | To workaround this issue, change the operation parameter type to javax.ws.rs.core.MultivaluedMap<String,String>. This issue is being addressed by bug number AI-514. |
| Workaround | |
| Notes | |
| Attachment |
| Created date: | 06 September 2011 |
|---|---|
| Last Modified: | 13 February 2013 |
| Last Published: | 23 June 2012 |
| First Published date: | 10 September 2011 |
#Orbix
#KnowledgeDocs




