IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

MapForce-Require to generate one API entry per container using Web service post method Options · View
pranith
Posted: Thursday, June 10, 2021 12:41:40 PM
Rank: Newbie

Joined: 6/10/2021
Posts: 2
Location: India
I need help on the below requirement

1.In my XML file, Container collection having 2 container nodes which consists of Container number for each node(Please refer below structure)

I have also atttached snap shot for reference.
Sample input data XML
<Container Collection>
<Container>
<ContainerNumber>SED6537789</ContainerNumber>
</Container>
<Container>
<ContainerNumber>SED6537788</ContainerNumber>
</Container>
</Container Collection>


2.My requirement is to send container number as an input parameter to Post Method API in Template.

3.We are getting API response if we send only one containerNumber to API, but the challenge is, in XML I have 2 container numbers,I need to send both at a time one after another in a single API call.How can i Achieve this?

4. API response should contain two Container details(Json response)

Expected Output:Need to get 2 API responses for each containernumber

Can any one please guide me on this.Thanks in Advance.


pranith attached the following image(s):
Capture.PNG

K101
Posted: Friday, June 11, 2021 9:31:04 AM
Rank: Advanced Member

Joined: 2/27/2009
Posts: 441
Is the parameter set as repeating in the web service call settings? See "Defining Web Service Parameters" on this page.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.