Avatar

Level 3

I'm working on databinding now. In the webservice, there is a field called "Commodities". And the WSDL is like this:

<xs:element name="Commodities" type="ns:Commodity" minOccurs="0" maxOccurs="unbounded"/>

"Commodities" is an array, and one item corresponds to one element in the array, like com[0], com[1] and so on.

in my PDF, I have a table, each row corresponds to one commodity. we are now trying to bind the row data to the webservice.

at first I edited the WSDL by duplicating the red line, then in LC data view, the webservice structure would be like this:

Commodity[0]

Commodity[1]

Commodity[2]

...

Each of them has an action "Generate Field" in its right-click menu. After generating them one by one, I can also see that in the Object-->Binding palette, they are counted like this:

Name: Commodity 0

Name: Commodity 1

Name: Commodity 2

...

it seems to be a correct process generating array data, but when I tried to call the webservice in PDF, none of the commodities was binded to the webservice.

do you have any idea about the correct process of binding a group of data to an array?