You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Peter Mueller <pm...@decrc.abb.de> on 2001/02/06 17:28:31 UTC

Nested datatypes in wsdl - how?

Hi,

I want to use nested data types in the types section of a wsdl file.
Code below shows what I want to do:

<types>
    ...
    xmlns:TEST = "http://..."

    <xsd:complexType name="type1">
        <element name="element1"    type="xsd:boolean" />
        <element name="element2"    type="TEST:type2" />
    </xsd:complexType>

    <xsd:complexType name="type2">
        <element name="element21" type = "xsd:string" />
    </xsd:compleyType>

...

</types>


When creating the client stubs the wdsl stub generator crashs with a
NullPointerException. When I leave out the TEST namespace stuff I get
the message that test2 is unknown (what I would expect).

Is nesting of types not possible, is there a bug in the wsdl tool or is
there a bug in the code shown above(most likely)?

Thank you for your help,
Peter

P.S: If someone has a working example available, please send it to me.


Nested datatypes in wsdl/soap - howto?

Posted by Peter Mueller <pm...@decrc.abb.de>.
Got no answers up to now. Any experience out there?
Peter

Peter Mueller wrote:

> Hi,
>
> I want to use nested data types in the types section of a wsdl file.
> Code below shows what I want to do:
>
> <types>
>     ...
>     xmlns:TEST = "http://..."
>
>     <xsd:complexType name="type1">
>         <element name="element1"    type="xsd:boolean" />
>         <element name="element2"    type="TEST:type2" />
>     </xsd:complexType>
>
>     <xsd:complexType name="type2">
>         <element name="element21" type = "xsd:string" />
>     </xsd:compleyType>
>
> ...
>
> </types>
>
> When creating the client stubs the wdsl stub generator crashs with a
> NullPointerException. When I leave out the TEST namespace stuff I get
> the message that test2 is unknown (what I would expect).
>
> Is nesting of types not possible, is there a bug in the wsdl tool or is
> there a bug in the code shown above(most likely)?
>
> Thank you for your help,
> Peter
>
> P.S: If someone has a working example available, please send it to me.


Nested datatypes in wsdl/soap - howto?

Posted by Peter Mueller <pm...@decrc.abb.de>.
Got no answers up to now. Any experience out there?
Peter

Peter Mueller wrote:

> Hi,
>
> I want to use nested data types in the types section of a wsdl file.
> Code below shows what I want to do:
>
> <types>
>     ...
>     xmlns:TEST = "http://..."
>
>     <xsd:complexType name="type1">
>         <element name="element1"    type="xsd:boolean" />
>         <element name="element2"    type="TEST:type2" />
>     </xsd:complexType>
>
>     <xsd:complexType name="type2">
>         <element name="element21" type = "xsd:string" />
>     </xsd:compleyType>
>
> ...
>
> </types>
>
> When creating the client stubs the wdsl stub generator crashs with a
> NullPointerException. When I leave out the TEST namespace stuff I get
> the message that test2 is unknown (what I would expect).
>
> Is nesting of types not possible, is there a bug in the wsdl tool or is
> there a bug in the code shown above(most likely)?
>
> Thank you for your help,
> Peter
>
> P.S: If someone has a working example available, please send it to me.