You're probably posting this message to the wrong forum..but anyways..
I don't think WSDL2Java allows nested complex types; an external scoped
definition would be needed. But let me check on this.
On a side note, why cannot you have this:
<types>
<xsd:schema targetNamespace="urn:bpel:jiap">
<xsd:complexType name="subsidyAgreementRequestType">
<xsd:sequence>
<xsd:element name="address" type="xsd:string"/>
<xsd:element name="schoolBusArrival" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="syncSubsidyAgreementRequestMsg">
<xsd:sequence>
<xsd:element type="tns:subsidyAgreementRequestType" name=
"subsidyAgreementRequest"/>
<xsd:element type="xsd:string" name="mode"/>
</xsd:sequence>
</xsd:complexType>
...
</types>
-----Original Message-----
From: Michael(_dot_)Giroux(_at_)Bull(_dot_)com
[mailto:Michael(_dot_)Giroux(_at_)Bull(_dot_)com]
Sent: Thursday, May 19, 2005 1:28 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] How to reference nested complex type
I'm attempting to write a WSDL that contains a schema with nested complex
types. The outer type contains an xsd:element reference to the nested
complex type. When I run WSDL2JAVA I get an error on the reference to the
nested type: Type
{url:bpel:jiap:syncSubsidyAgreementRequestMsg}subsidyAgreementRequestType
is referenced but not defined.
Question: what is the correct syntax for referencing the nested type. It
has scope local to the outer complexType, so I'm guessing that I need to
form a fully qualified name that references both the containing type and the
nested one, but so far, I cannot find documentation on this, and I've been
unable to guess at the correct syntax.
Michael Giroux
<types>
<xsd:schema targetNamespace="urn:bpel:jiap">
<xsd:complexType name="syncSubsidyAgreementRequestMsg">
<xsd:complexType name="subsidyAgreementRequestType">
<xsd:sequence>
<xsd:element name="address" type="xsd:string"/>
<xsd:element name="schoolBusArrival" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:sequence>
<xsd:element type="tns:subsidyAgreementRequestType" name=
"subsidyAgreementRequest"/>
<xsd:element type="xsd:string" name="mode"/>
</xsd:sequence>
</xsd:complexType>
...
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--