cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver REST Adapter POST Method

0 Kudos

Hi experts,

I'm working on 3th pary systems and I use Receiver REST Adapter for JSON.

JSON parameters:{"username":"akedas","password":"w8JAYDjoT8C0u7H9","city_id":18,"county_id":1232,"started_at":"2016-05-19 05:00:00","ended_at":"2016-05-19 06:01:00","description":"test-1"}

I created the same parameters with JSON in ESR

Receiver REST Adapter:

I selected XML in Request Data Format because of Service Interface in ESR.

Response Data Format:XML

When I test configuration , service returned invalid content of my parameters as result.

How can I fixed this problem.Please help me.

Best Regards,

Bekir.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182412
Active Contributor
0 Kudos

Hi Bekir,

You need to give data format as json because your restful service expecting json format not the xml.

Refer below blog for more details.

Regards,

Praveen.

0 Kudos

Hi Praveen,

Thanks for reply.But I already tried to your suggestion.I don't use GET methode.I use POST method.


My scenario:XI-->PO-->REST


So, I think I need this structure;


Request:XI(XML)-->PO-->XMLtoJSON-->REST


Edit:Response:REST-->HTMLtoXML-->PO-->XI

Because the response returnes to me as text/HTML


How can I do that for Receiver REST Adapter with POST method?


Regards,

Bekir.