xmlbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "José Antonio Sánchez" <getace...@gmail.com>
Subject WS-Addressing 1.0 (2005) compliance
Date Fri, 15 Dec 2006 15:41:31 GMT
I'm trying to generate xmbeans objects from a schema that has an
element of type EndpointReferenceType. The element has the following
form:

<element name="HostLocation" type="wsa:EndpointReferenceType">

and wsa:EndpointReferenceType is the following one:

<xs:complexType name="EndpointReferenceType" mixed="false">
		<xs:sequence>
			<xs:element name="Address" type="tns:AttributedURIType" />
			<xs:element name="ReferenceParameters"
				type="tns:ReferenceParametersType" minOccurs="0" />
			<xs:element ref="tns:Metadata" minOccurs="0" />
			<xs:any namespace="##other" processContents="lax"
				minOccurs="0" maxOccurs="unbounded" />
		</xs:sequence>
		<xs:anyAttribute namespace="##other" processContents="lax" />
	</xs:complexType>

When I generate a HostLocation element, a compliant ws-addressing
service expects it to be the following element:

<HostLocation xmlns="http://lsd.org/wsdm/HostInstallationSchema">
    <wsa:Address>http://localhost</wsa:Address>
</HostLocation>

but instead I get the following:

<HostLocation xmlns="http://lsd.org/wsdm/HostInstallationSchema">
  <wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing">
    <wsa:Address>http://localhost</wsa:Address>
  </wsa:EndpointReference>
</HostLocation>

I don't know what's wrong because I'm not referencing the
EndpointReference element anywhere on my custom schema but it gets
generated in the HostLocationDocument instances. Is it the right
behavor for a schema element? Then is ws-addressing specification
wrong?

-- 
Saludos.
José Antonio Sánchez

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


Mime
View raw message