cancel
Showing results for 
Search instead for 
Did you mean: 

Consume Webservice - Get token & Post Data - JSON

Former Member
0 Kudos

We have a scenario where SAP sends payment information data to a 3rd party vendor consuming their webservice.

I have the following challenges -

1. Data has to be sent in JSON format to the vendor's webserivce

2. Sending the data should occur in 2 steps -

     -> Call the authentication service - get the authentication key

     -> use the authentication key from the response in the above step to do a new POST to the rest webservice that processes the data.

We dont have any REST adapter. I am planning to use Java to convert xml to JSON. And call receiver HTTP channels in the UDF to send the data to the REST service.

Questions:

1. Should we use BPM to achieve this?

Pleas throw some light on this.

Accepted Solutions (0)

Answers (1)

Answers (1)

iaki_vila
Active Contributor
0 Kudos

Hi Naveen,

I think you will need two scenarios to call two times your endpoint. You can try with the AXIS adapter like this Former Member's blog explained

However, from my point of view as the RESTful architecture differs of SOA Architcture i would use the SAP Netweaver gateway (free addon). Check this thread for more opinions

Regards.