Page 1 of 1

WebService Repeating Elements

Posted: Tue May 28, 2013 3:02 am
by spoilt
I am having a problem while sending a message to webservice having repeating element.

For exemple : Employees ID's is declared as maxoccurs="unbounded"

<EMPLOYEES>
<ID>123</ID>
<ID>121443</ID>
<ID>125553</ID>
</EMPLOYEES>

I am reading ID column as one value 123</ID><ID>121443</ID><ID>125553. (DataType is already marked as "XML") However, the message send to webservice is
123</ID><ID&gt121443</ID&gt<ID&gt125553
encoding < as < and > as >


Client needs the repeating values to be send in the same record [not splitting every value as a row in XMLStage to send message] ?

Can you please help me?

Posted: Tue May 28, 2013 5:12 am
by eostic
You'll need an xmlOutput Stage prior to the web services transformer. ...one that builds this xml that is required going into the web service, where your multiple ID rows become multiple instances. I recently outlined the steps needed for another poster in the past day or two....search for that and you will see the steps.

Ernie