Hi,

In DSS, when we send a POST request to a service with path parameters,
eg:
http://localhost:9763/services/DS1221/post/3
-H'Content-Type:application/xml'
-d'<_postpost_id><name >Jack</name><address >test</address></_postpost_id>'

where, the resource template in DSS is "post/{id}", the "id" parameter
doesn't get added to the message context at axis2 level. [1]

But for GET requests the path parameter is added.
eg: http://localhost:9763/services/DS1221/get/1


It seems, in XFormURLEncodedBuilder[2], which gets hit in the case of GET
request, path params are extracted from request, but
in ApplicationXMLBuilder[3] which gets hit in the case of POST request, it
doesn't happen.

This seems to be a bug, but could there be any reason behind not adding
this in ApplicationXMLBuilder?


[1] https://wso2.org/jira/browse/DS-1221

[2]
https://github.com/wso2/wso2-axis2/blob/master/modules/kernel/src/org/apache/axis2/builder/XFormURLEncodedBuilder.java#L99

[3]
https://github.com/wso2/wso2-axis2/blob/master/modules/kernel/src/org/apache/axis2/builder/ApplicationXMLBuilder.java


​Thanks,
Manuri​

-- 

*Manuri Amaya Perera*

*Software Engineer*

*WSO2 Inc.*

*Blog: http://manuriamayaperera.blogspot.com
<http://manuriamayaperera.blogspot.com>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to