I use SSIS to load an xml file to a sql table. Then I use IBM Cast Iron to pick up the table's records and push them to Oracle CRM on Demand.
I have a table called DDR.CRM_Comp_Asset, which I load xml data into. My table has a PK on Util_Unique_Pk which is an autogenerated id incremented by 1. Any data sent to me will be loaded into the table, even duplicate records (a requirement). This table also has a column called ActionCode which has the default value "insert" upon new records created.
On the site, Oracle CRM on Demand, SerialNumber is a unique field. We can only push records into Oracle CRM on Demand with a unique SerialNumber. All repeated SerialNumbers will fail the Cast Iron integration. I use a WSDL operation Execute to handle both inserts and updates based on the WSDL mapping "@operation" value recieved from ActionCode. Once the correct value "insert" or "update" is mapped to @operation, the WSDL operation knows to perform that operation.
Therefore, in my SSIS package, I need a way to say "While loading xml data into DDR.CRM_Comp_Asset, after the 1st record with unique SerialNumber is created (with ActionCode = "insert"), then all the following records with a duplicate SerialNumber should be inserted into the table with ActionCode = "update"." Is this possible? Thanks.
Evan Johnson