We are building a system which uses biztalk to process infopath forms and either place them in a sharepoint document library or do some more complex processing which involves SQL and other components.
We have created a receive port and a single receive location where all forms will be picked up. In order to avoid having all form schemas loaded individually (ie a dll each one) with different namespaces on biztalk we have created a generic xsd which has the namespace http://mycompany/businessform and after the header of the form which contains routing information we have an element which is of type xs:any which covers all different types of forms.
This works fine for forms which only pass through biztalk and end-up in sharepoint. What about the rest of the forms? How can we map the generic xsd to the actual form xsd in order to access specific data inside an orchestration in these forms?
Any suggestions?
Thanks!