Generating a recursive section from a web service

C

ChipD

Using Infopath I've created a recursive XML document that is a simple set of
line items that I'd like to display in a hierarchical format, similar to an
outline format. The Data source task pane displays the following:

- myFields
- WorkItem
o Title
o Text
- WorkItem
o Title
o Text
+ WorkItem

This document works fine. I can display the information the way I want and
the saved XML is the format I want. Now I need to convert this to use a web
service that provides the XML in this same format (the actual data will be
stored in a SQL Server database).

I've written a web service that returns an XML document in the format listed
above, but when I create a new form from a data connection and select my web
service, the Data source task pane shows a different structure:

- myFields
+ queryFields
- dataFields
- tns:GetWorkItemsResponse
- GetWorkItemsResult
- ns1:myFields
- WorkItem
- (choice)
o Title
o Text
+ WorkItem

How can I get InfoPath to interpret the XML document that my web service
returns so that it works just like the first example? Why does it add the
(choice) level?

Thanks for your help.
 
Top