You can't put schema in to a wsdd file.  The Schema for complex types are 
automatically generated by Axis.

If you need more control, you can specify the WSDL file that Axis will return instead 
of having it generated. Use the <wsdlFile>/path/to/file</wsdlFile> element, which is 
in the <service> element.

In recent CVS source, you can also specify a Schema file to include inline in the 
generated WSDL.

--
Tom Jordahl
Macromedia Server Development



-----Original Message-----
From: Olivier Gauwin [mailto:gauwin@;campus.dtrd.de]
Sent: Thursday, November 07, 2002 5:01 AM
To: [EMAIL PROTECTED]
Subject: Declaring complex types in wsdd file


Hi,
I have to declare a complex type in the wsdd file. I've already tried, 
but this complex type is empty in the wsdl file (after deployment), 
there's just a <sequence /> tag.
I've put this in my wsdd file, after the declaration tag :
    <types>
        <xsd:schema targetNamespace="http://myns.org";
        xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
    <xsd:complexType name="myCplx">
    <xsd:sequence>
        <xsd:element
        name="type" type="CORBA.TypeCode"
        maxOccurs="1" minOccurs="1"/>
        <xsd:element
        name="value" type="xsd:anyType"
        maxOccurs="1" minOccurs="1"/>
    </xsd:sequence>
        </xsd:complexType>
        </xsd:schema>
    </types>

What can be wrong ??
Thank you :)
Olivier

Reply via email to