cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

how to consume  Rest webservice by sending parameters using post method

rtoraskar
1-Newbie

how to consume  Rest webservice by sending parameters using post method

Hi ,
I want to consume  a rest webservice url and and want to send some parameter(ex. array) using post method.
Which api to use and how to send parameters ?

Thanks

2 REPLIES 2

Can you define any specific use case? It will be much easier to help you answering specific question than such a generic once. 

Hi Mateus,

I want to call a rest web service using post method and wanted to send some data(i.e. parameters), but the data should be send as array of array. So while making call i am send parameter as json string and able to call the service but in server, parameter is coming as null thus failing the call.

I am using PostJSON api of ContentLoaderFunctions and in content i am passing the parameter as JSON String in content params.
ex:
content:  {"key":[{"key":"value","key":"value","key":"value"}],"key":"value","key":{}} 

Thanks



Announcements


Top Tags