You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by duachirag <du...@yahoo.com> on 2011/04/13 17:31:33 UTC

@FormParam null for a post request in Tomcat 7.0.11

I recently migrated my mule web service from weblogic to tomcat, @FormParam
is null for a simple post request. I verified the client side, client is
sending the correct xml as form param.


@POST
    @Path("/updateStoreFrontEligibilityInfo")
    @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
    @Produces(APPLICATION_XML)
    void updateStoreFrontEligibilityInfo(
            @FormParam("storefrontDetailXML")String storefrontDetailXML);

What is the alternative if I can't use @FormParam?

I am using little older CXF libraries, 2.1.5, can't upgrade right now ..

Thanks
Chirag


--
View this message in context: http://cxf.547215.n5.nabble.com/FormParam-null-for-a-post-request-in-Tomcat-7-0-11-tp4300901p4300901.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: @FormParam null for a post request in Tomcat 7.0.11

Posted by Sergey Beryozkin <sb...@gmail.com>.
I think Mule ships with Jersey - so most likely it is a Jersey related query

thanks, Sergey

On Wed, Apr 13, 2011 at 4:31 PM, duachirag <du...@yahoo.com> wrote:

> I recently migrated my mule web service from weblogic to tomcat, @FormParam
> is null for a simple post request. I verified the client side, client is
> sending the correct xml as form param.
>
>
> @POST
>    @Path("/updateStoreFrontEligibilityInfo")
>    @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
>    @Produces(APPLICATION_XML)
>    void updateStoreFrontEligibilityInfo(
>            @FormParam("storefrontDetailXML")String storefrontDetailXML);
>
> What is the alternative if I can't use @FormParam?
>
> I am using little older CXF libraries, 2.1.5, can't upgrade right now ..
>
> Thanks
> Chirag
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/FormParam-null-for-a-post-request-in-Tomcat-7-0-11-tp4300901p4300901.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>



-- 
Sergey Beryozkin

Application Integration Division of Talend <http://www.talend.com/>
http://sberyozkin.blogspot.com