srikotesh
asked on
can i pass string type of xml to REST Service to consume XML
Hi Experts,
sample xml of type string
i want to pass this xmlStr to rest-api webservice to conusme it.
request method -post,
acceptable -contente type is -->application/xml
i am having doubt do i need to convert this xmlStr to XML or i can pass this xmlStr directly
if possible please provide sample.
Thanks
sample xml of type string
String xmlStr = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n"+
"<Tutorial id=\"1\"><technology>Dot net, Java, Big data, Database</technology>\n"+
"<address>topjavatutorial.com</address></Tutorial>";
i want to pass this xmlStr to rest-api webservice to conusme it.
request method -post,
acceptable -contente type is -->application/xml
i am having doubt do i need to convert this xmlStr to XML or i can pass this xmlStr directly
if possible please provide sample.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.