I have a requirement where I will be having some dynamic values and with that I have to construct an xml message both with elemenst and processing instructions.
An example is given below.
Code: Select all
Input Data:
Key 1 ID Operation Type
===== ==== ==========
ABC 10 TYP1
XYZ 20 TYP2
Web Service expect the data below:
Input request xml:
SOAP header
<ns1:strRequest> "String"
</ns1:strRequest>
"String" has to be constructed as follows:
<Header1>
<?ho-type "Operation Type"?>
<?ho-username "user"?>
<?ho-password "password"?>
<?ho-id "KEY1"?>
<Data Tag>
<Identifier> "ID" </Identifier>
</Header1>>