cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver REST Adapter, sync message not received

Rohit87
Explorer
0 Kudos

Hi,

I am working on a Proxy to REST sync scenario.

My data is example

   <CustomerDetails>

      <FirstName>name1</FirstName>

      <LastName>name2</LastName>

      <Email>pqr@xyz.com</Email>

      <ContractAccount>123</ContractAccount>

   </CustomerDetails>

   <CustomerDetails>

      <FirstName>name2</FirstName>

      <LastName>name3</LastName>

      <Email>pqr1@xyz.com</Email>

      <ContractAccount>123</ContractAccount>

   </CustomerDetails>

I want to send data via POST method at receiver side, and Client has given URL as

https://<clientdata>//WRAPI/<method>/api.php?API_SELECT=<method>&Version=2.5&Request=<method1>&User=username&Token=token&Format=XML&LibraryID=Liberary&ColumnHeaders=0&Name=TEST0107&Email=3&FirstName=1&LastName=2&ExternalRef=4&JSONPrettyPrint=0

how should I go about it?

When I test it via Chrome API or SOAP UI it works properly when I same URL with below data

Rohit,Verma,rohittest@abc.com,1234


I had used Struct2XML moduleBean but no avail to convert XML to CSV.

How can I achieve this?

Regards,

Rohit

Accepted Solutions (0)

Answers (1)

Answers (1)

Muniyappan
Active Contributor
0 Kudos

why do you want to convert to csv?

can you post the google rest client test screenshot here?

your payload is xml?

Rohit87
Explorer
0 Kudos

sorry for late reply.

Muniyappan
Active Contributor
0 Kudos

How To...Content conversion module with J2EE JMS adapter - Process Integration - SCN Wiki

refer section 3.3 Simple Conversion in a Receiver Communication Channel

Rohit87
Explorer
0 Kudos

Thanks Muni, I had already applied it but no success.

channel ping gives error. I have already installed certificates from the website. (p.s. same 3rd party, same format but different API in the image)

this error comes for all the channels.

Muniyappan
Active Contributor
0 Kudos

are you getting the same error when you run the interface in communication channel? you can stop and start the channel

meanwhile can you check with network if your PI is allowed to connect to target system? telnet should work.

Rohit87
Explorer
0 Kudos

yes.. same error when message is triggered. Telnet works.

Muniyappan
Active Contributor
0 Kudos

can you paste the adapter audit logs here?