Dear all,
Situation
I have a ERP (Proxy) --> PI --> 3rd Party (REST) synchronous scenario. I'm using GET to receive data. I'm on PO 7.5 SP13
The 3rd party service either provides a single record or multiple records as JSON array as a response.
Single:
{
"guid": "1234",
"subject": "My subject",
"existEmlAlready": true
}
Multi:
[
{
"guid": "1234",
"subject": "My subject",
"existEmlAlready": true
},
{
"guid": "4321",
"subject": "My other subject",
"existEmlAlready": true
}
]
What I want to achieve
I want to ideally process both responses with a single operation with a single response message type
Single
<messageType> <record> <guid>1234</guid> <subject>My subject</subject> <existEmlAlready>true</existEmlAlready> </record> </messageType>
Multi
<messageType> <record> <guid>1234</guid> <subject>My subject</subject> <existEmlAlready>true</existEmlAlready> </record> <record> <guid>4321</guid> <subject>My other subject</subject> <existEmlAlready>true</existEmlAlready> </record> </messageType>
What I tried / where I fail
My Questions
Many thanks and kind regards
Jens