Forum Discussion

ruben_sanchezi's avatar
15 years ago

Pass an object with multiple attributes

Hello,
I'm trying to run a WS method with different parameters. One of them is an object which one attribute is repeating with two fields.
For example:
-Object P
+ Atribute1 (repeating)
* name
* value
+ Atribute 2
+ Atribute 3

The "name" and "value" atributes for Atribute 1 are multiple ones.ç
This is the xml I use

<gdi:p>
<!--Zero or more repetitions:-->
<xsd:atributos>
<!--Optional:-->
<xsd:name>object_name</xsd:name>
<!--Optional:-->
<xsd:value>Test1</xsd:vlalue>

<xsd:name>id</xsd:name>

<xsd:value>123456</xsd:vlalue>

</xsd:atributos>
<!--Optional:-->
<xsd:content>cid:968109752404</xsd:content>
<!--Optional:-->
<xsd:format>?</xsd:format>
<!--Optional:-->
<xsd:location>?</xsd:location>
<!--Optional:-->

<xsd:tipo_expediente>?</xsd:tipo_expediente>
</gdi:p>

I have modified the original xml to add more "name" and "value".
When I execute the test i can't get the id value:

<xsd:name>id</xsd:name>
<xsd:value>123456</xsd:vlalue>

I just can get the frist one:
<xsd:name>object_name</xsd:name>
<!--Optional:-->
<xsd:value>Test1</xsd:vlalue>

Any idea?
Thank you.

1 Reply

  • gsugunan's avatar
    gsugunan
    Occasional Contributor
    I have almost the exact same issue; does anyone know the answer to this? Mine also involves populating those values through properties.