+ Start a Discussion
Suman KunduSuman Kundu 

Response from Rest Resource (@HttpPost) enclosed by Double Quote



I have built a RestResource class for handling HTTPPost requests. Now everything is working properly except the response being enclosed by double quote ("). I am sending a response in xml pattern but in return type I am using type: String.


global static String doPost(String message, String device_address)


I don't know what should be the response type here, and also don't know whether this return type makes the problem or not.



So I need your suggestion to resolve the issue ASAP.



Suman Kundu