In this example, the XML contains a repeating section that has several XML nodes:
Using Fred’s Clean Data Web Service, we will pass in an array to the CleanseSYS method. The method is simply an XML file:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cob="http://cobra.fredscleandata.com/">
<soapenv:Header/>
<soapenv:Body>
<cob:CleanseSys>
<cob:CleanserInput>
<!-- Begin TSS Input Fields -->
<cob:CleanseField>
<cob:Name>CLEANDATA_SALUTATION</cob:Name>
<cob:InputValue></cob:InputValue>
</cob:CleanseField>
<cob:CleanseField>
<cob:Name>CLEANDATA_FIRSTNAME</cob:Name>
<cob:InputValue>Hadrian</cob:InputValue>
</cob:CleanseField>
<cob:CleanseField>
<cob:Name>CLEANDATA_LASTNAME</cob:Name>
<cob:InputValue>Swall</cob:InputValue>
</cob:CleanseField>
.
.
.
<!-- Begin TSS Return Fields -->
<cob:CleanseField>
<cob:Name>Gender</cob:Name>
<cob:UpdateRule>DR_NAME_GENDER</cob:UpdateRule>
<cob:InputValue>?</cob:InputValue>
<cob:OutputValue>?</cob:OutputValue>
</cob:CleanseField>
<cob:CleanseField>
<cob:Name>Prefix</cob:Name>
<cob:UpdateRule>DR_MRMRS</cob:UpdateRule>
<cob:InputValue>?</cob:InputValue>
<cob:OutputValue>?</cob:OutputValue>
</cob:CleanseField>
.
.
.
</cob:CleanserInput>
</cob:CleanseSys>
</soapenv:Body>
</soapenv:Envelope>