I have searched InfopathDev and Google for days on this issue, and I must be searching on the wrong terms because I can't imagine that I'm the first person to be stumped by this challenge.
How can I submit an XML document to a web service using my Infopath form's primary dataset, and receive an XML document in response that I can then bind to a secondary dataset?
My web service method requires an XML document, which is easy to submit using InfoPath by starting with the "XML or Schema" form template and using the "Submit" options to create a data connection to the web service. InfoPath apparently anticipates no response from the web service after submitting the document.
My web service method returns an XML document. It is easy to receive an XML document from a web service method by using the data connection wizard (or the web service form template)... but only if the web service method accepts distinct parameters, not an XML document.
It is quite reasonable to expect that I should be able to do this without code. I should be able to specify an XML tree on the submit, and catch an XML tree in response. I have tried every combination of creating data connections that I can conceive of. I have tried modifying the schema file that the manifest references, to replace the queryFields XML that only hold distinct parameters with a robust XML structure.
Your thoughts are appreciated.