cancel
Showing results for 
Search instead for 
Did you mean: 

Integration with JAVA application with JSON response

Former Member
0 Kudos

Dear Experts,

I am working in a scenario where the application is based on JAVA  which supports JSON data format.The request will be sent from ABAP proxy.

The team has given me the following parameters to consume their service.


Server Name          getNInboxItems

HTTP Method         POST

Content Type        application/x-www-form-urlencoded

Input params        credentials=user10,IBM&password=IBM&action=getNInboxItem

                           s&domainName=user10&departmentId=

Authentication       None

Output       

{

"items": [

{

"item": {

"WFID": "792F4E52491945E1454545",

"Subject": "IBM test",

"DocumentID": "{4340A4-B1E4-4A5D-A87A476D}",

"Sender": "user ,"

"SenderDomainName": "user10",

} } }

I referred the blog

Based on the above requirement, please help me to find out the queries.

1. I wont be using Rest Advantco adapter and planning to use receiver SOAP adapter.

2. I am not sure where to include the

Input params   credentials=user10,IBM&password=IBM&action=getNInboxItem

               s&domainName=user10&departmentId=

3. When I am calling the request to JAVA application, is there any need to convert XML to JSON

4. Once I get the response from JAVA application, I am planning to convert JSON ouptut to XML through java mapping.

   Would it work if I use conversion in mapping or should I have to develop a adapter module.

5. Do I have to create any Message Type for the sender SAP ECC and include the input parameters?

Advance thanks for the earliest response...

Regards

Rebecca

Accepted Solutions (1)

Accepted Solutions (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

1) Yes, you can use Soap adapter

3) If the java application looks for json as the data input, then you need to convert xml to json.  Otherwise don't need.

4) You can use java mapping to convert json to xml. No need any custom adapter module..

Former Member
0 Kudos

Dear Bhaskar,

As you can observe the Input parameter which the JAVA system requires is


Input params        credentials=user10,IBM&password=IBM&action=getNInboxItem

                                 s&domainName=user10&departmentId=

I am not sure how to capture this. I though of designing like below.Please correct if I am wrong.

1. Should I create Dynamic Request message type to capture the service , then how about the other parameter like user and password?

2. I know Action can be captured using SOAP adapter but dont know to enter the domainName

3. Do you have any experience in such scenario where the JAVA service has been called just using the SOAP adapter without any XML to JSON conversion?

Regards

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Experts,

Any inputs to my queries.

Regards