Hi Witzer and thanks for the complement,
I'm not sure I understand your scenario exactly, so here's a few points:
-
A good Web Service will return the correct WSDL for the data and you won't have to do any parsing of strings... In other words, you'll see the XML show up in the data source pane if you select the data connection you added and expand the nodes.
-
Sometimes, you need to send it a value so that it will return the correct schema. Use the sample value for that when you create the connection. Make sure the Web Service returns a plural number of rows for repeating data sets so that your form identifies it as repeating. If you don't have control over the Web Service, this can be a problem.
-
The DC is just the data connection. To get the secondary data you need to select the nodes you want. For example:
XPathNavigator sourceTable = domSource.SelectSingleNode(tablesrc);
XPathNavigator sourceRow = sourceTable.SelectSingleNode(rowsrc);
XPathNodeIterator srcNodes = sourceTable.Select(rowsrc, FormHost.NamespaceManager);
Assuming the DC returns the correct XML structure (not sure about that from what you said), you should take a look at qRules 1.7 (free). It has a CopyTable function that lets you copy nodes from a secondary data source into your main data source. No coding required.
Cheers