In our project we are using web service transformer stage to call MDM web service (The datastage version is 8.7 and OS is Windows server 2008 R2). the job design is as below
Sequential file---->webserviceTransformer--->Transformer--->Sequentialfile
The job is working fine , we have imported the WSDL and used the definations to call the webservice. But we have a new requrement in which a particular block of the request XML needs to be repeated. For e.g.
Code: Select all
<ns3:TCRMPartyAddressBObj>
<ns3:AddressUsageType>13</ns3:AddressUsageType>
<ns3:TCRMAddressBObj>
<ns3:AddressLineOne>abcefg</ns3:AddressLineOne>
<ns3:AddressLineTwo>abcefg</ns3:AddressLineTwo>
<ns3:AddressLineThree>abcefg</ns3:AddressLineThree>
<ns3:City>abcefg</ns3:City>
<ns3:ZipPostalCode>700055700055</ns3:ZipPostalCode>
<ns3:CountryType>7426</ns3:CountryType>
</ns3:TCRMAddressBObj>
</ns3:TCRMPartyAddressBObj>
For e.g. AddressLineOne is defined as
/ns1:addPerson/ns2:TCRMPersonBObj/ns2:TCRMPartyAddressBObj/ns2:TCRMAddressBObj/ns2:AddressLineOne/
In the input file the structure is as below
AddressUsageType,AddressLineOne,AddressLineTwo,AddressLineThree,
City,ZipPostalCode,CountyType,AddressUsageType_2,AddressLineOne_2,
AddressLineTwo_2,AddressLineThree_2,City_2,ZipPostalCode_2,CountyType_2
So basically we need to generate two blocks - one withe city,adrressline etc and the other with city_2,addresslineone_2 etc.
Please let me know if there is a way to achieve this. Thanks for your help in advance.