function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Suman KunduSuman Kundu 

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

Hi,

 

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.

 

@HttpPost
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.

 

Thanks

Suman Kundu