axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject wsdl2java tool schema compatibility failure
Date Mon, 28 Oct 2002 13:42:19 GMT

There is a problem on generating java interface classes from wsdl. The elements that are represented
by extension base in schema are placed  after  the extension elements.

The schema specification says the representation of extension base and extension are oredered
and the extension is placed at the end of the message.

Let's have an example:

- Here is a schema with an extension:

<xs:complexType name="submitReqType">
		<xs:extension base="tns:genericVASPRequestType">
				<xs:element name="Recipients" type="tns:recipientsType"/>
				<xs:element name="ServiceCode" type="tns:serviceCodeType" minOccurs="0"/>
				<xs:element name="DistributionIndicator" type="xs:boolean" minOccurs="0"/>
				<xs:element name="Content" type="tns:contentReferenceType" minOccurs="0"/>

<xs:complexType name="genericVASPRequestType">
		<xs:documentation>Base type for all requests from VASP to R/S</xs:documentation>
		<xs:element name="MM7Version" type="tns:versionType"/>
		<xs:element name="SenderIdentification" type="tns:senderIDType"/>

- The bad xml representation produced by the generated interface look like this:

  <SubmitReq xmlns="">
		  <RFC2822Address xsi:nil="true"/>
		  <Number displayOnly="false">+420</Number>
		  <ShortCode xsi:nil="true"/>
	  <Content href="cid:CFA2D105D249AE505148EEFEC5473D1F" allowAdaptations="true"/>

Please, let me know if this is known.


View raw message