on 06-10-2014 11:17 AM
Hi experts,
I have a requirement to modify a XML payload and add a test string to the start. The usual XML payload is below
<?xml version="1.0" encoding="UTF-8"?>
<Request version="1.0">
<Verification>123</Verification>
</Request>
What I want to do is add a test string to the start of the XML payload as shown below.
load=<?xml version="1.0" encoding="UTF-8"?>
<Request version="1.0">
<Verification>123</Verification>
</Request>
Does anyone have any ideas how this can be done?
FYI - We are using PI 7.3. I can see the prolog on a 7.11 HTTP adapter but not on the 7.31 Adapter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
load=<?xml version="1.0" encoding="UTF-8"?>
<Request version="1.0">
<Verification>123</Verification>
</Request>
Does anyone have any ideas how this can be done?
Yes, this can be done. If your communication channel is:
a.) Plain HTTP Adapter - you can add this in the communication channel via the prolog section. Value is load=
b.) SOAP Adapter - Do Not Use SOAP Envelope needs to be checked and the load= has to be added via Java mapping.
Hope this helps,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Robert,
Can you provide more details about underlying requirement for addition of this test string to the payload? This will help in providing the feasible solution.
Regards
VJ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.