Hi Pavel,
Thanks for the response. This is what my resource class looks like-
@Path("/repositories/{repositoryName}/folders")
public class FoldersResource {
@POST
@Consumes(MediaType.APPLICATION_XML)
@Produces(MediaType.APPLICATION_XML)
public String getObjectAsXML(@PathParam("repositoryName") String
strRepositoryName, SysObjectRequestObject sysObj)
{
//object processing
}
}
I'm sending an XML using curl:- curl -X POST -HContent-type:application/xml
--data @test1.xml
http://loc
alhost:8081/jersey/rest/repositories/DOC/folders.xml
I have attached the test1.xml file and the SysObjectRequestObject java
class.
http://n2.nabble.com/file/n4694094/test1.xml test1.xml
http://n2.nabble.com/file/n4694094/SysObjectRequestObject.java
SysObjectRequestObject.java
--
View this message in context: http://n2.nabble.com/consuming-xml-tp2485018p4694094.html
Sent from the Jersey mailing list archive at Nabble.com.