Skip to Content
author's profile photo Former Member
Former Member

Expecting N records in response with JAVA mapping

Dear Experts,

I am working in synchronous scenario ABAP Proxy to JAVA Rest services. Scenario would be to send a single request and expecting N records as response.To accomplish the request call , I am using Message Mapping while on the Response side I am using JAVA mapping.

Below are some of queries that's impeding me work. I searched in forum but could not help me.

1. Since I am expecting N number of records in response, how to configure in Operation Mapping?

2. How the JAVA mapping would update the Proxy table during runtime?

3. Is there any need to create a Message Type for response ?

4. How to complete the scenario?



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2014 at 10:14 AM

    You would need to read the input stream and based on your transformation create the outstream according the structure you create for response on proxy side.

    In operation mapping you just need to assign the java archive.

    What is the requirement here to go for java mapping?

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Rebecca,

      a. Do I have to code another snippet to fetch the value from XML before connecting to ECC or the system will take care

      ans) Yes , you need a mapping unless ECC can accept the response exactly in the same manner as the webservice is sending it back.

      Inform ECC /functional team of the response structure and check if they can accept the format.

      b. I hope the JAVA mapping used to convert the response JSON to XML will be enough to complete the scenario.Rest the system will take care....?

      ans) if the XML obtained after conversion from JSON is the one accepted by ECC then its enough else ans wer to question a above is applicable.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.