Hello, I have a schema like this:
<xs:complexType name="ParticipantGroupType">
<xs:sequence>
<xs:element name="protocol" type="xs:anyURI" minOccurs="0"
maxOccurs="unbounded"/>
<xs:element name="participant" type="ref:ServiceRefType"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
And ServiceRefType is this:
<xsd:complexType name="ServiceRefType">
<xsd:sequence>
<xsd:any namespace="##other" processContents="lax"/>
</xsd:sequence>
<xsd:attribute name="reference-scheme" type="xsd:anyURI"
use="optional"/>
</xsd:complexType>
As you can see, there is an optional element name reference-scheme.
The problem is that getParticipantArray(i) gives different results if
reference-scheme is present or not. For example, if I call it over:
<participants>
<protocol>LRA</protocol>
<participant reference-scheme="http://www.w3.org/2005/08/addressing">
<wsa:Address>
http://localhost:8081/axis2/services/WSCAF-CompensatorService
</wsa:Address>
</participant>
</participants>
I get:
<participant reference-scheme="http://www.w3.org/2005/08/addressing">
<wsa:Address>
http://localhost:8081/axis2/services/WSCAF-CompensatorService
</wsa:Address>
</participant>
But if I call it with:
<participants>
<protocol>LRA</protocol>
<participant>
<wsa:Address>
http://localhost:8081/axis2/services/WSCAF-CompensatorService
</wsa:Address>
</participant>
</participants>
I get instead:
<wsa:Address>
http://localhost:8081/axis2/services/WSCAF-CompensatorService
</wsa:Address>
I don't know why because it must return the same element no matter if
reference-scheme is present or not, but instead it returns its
contents when called over a simple element instead of the element
itself.
--
Saludos.
José Antonio Sánchez
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]