You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Franz Fehringer <fe...@isogmbh.de> on 2006/01/17 08:25:31 UTC

AW: wsdl2java and QName("a.b.c", ">classname")

Axis1 has problems with anonymous complexTypes i.e. with constructs like

<element name="zombie">
<complexType>
...
</complexType>
</element>

For AXISCPP this is issue AXISCPP-753; i do not know if there is an AXISJAVA
issue opened yet.
If this is really your problem your workaround is

<complexType name="t_zombie">
...
<complexType>
<element name="zombie" type="t_zombie">
</element>

Greetings

Franz

-----Ursprüngliche Nachricht-----
Von: Jarmo Doc [mailto:jarmod@hotmail.com]
Gesendet: Dienstag, 17. Januar 2006 01:24
An: axis-user@ws.apache.org
Betreff: wsdl2java and QName("a.b.c", ">classname")


Why does Axis wsdl2java generate the ">" in the following?  What does it
mean?

- typeDesc.setXmlType(new javax.xml.namespace.QName("a.b.c",
">myexception"));

This also results in &gt;myexception in the server WSDD file after I deploy
the service, for example:

- <typeMapping
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle="" qname="ns158:&gt;myexception"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
type="java:a.b.c.myexception" xmlns:ns158="a.b.c"/>

Thanks.

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee®
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



RE: AW: wsdl2java and QName("a.b.c", ">classname")

Posted by Jarmo Doc <ja...@hotmail.com>.
Hi Franz, this is exactly the cause of the problem I'm having.  Now that I 
know what's causing it I can fix it.  Thanks very much for your help.


>From: "Franz Fehringer" <fe...@isogmbh.de>
>Reply-To: axis-user@ws.apache.org
>To: "Apache AXIS C Developers List" 
><ax...@ws.apache.org>,"Axis-Dev@Ws. Apache. Org" 
><ax...@ws.apache.org>
>Subject: AW: wsdl2java and QName("a.b.c", ">classname")
>Date: Tue, 17 Jan 2006 08:25:31 +0100
>
>Axis1 has problems with anonymous complexTypes i.e. with constructs like
>
><element name="zombie">
><complexType>
>...
></complexType>
></element>
>
>For AXISCPP this is issue AXISCPP-753; i do not know if there is an 
>AXISJAVA
>issue opened yet.
>If this is really your problem your workaround is
>
><complexType name="t_zombie">
>...
><complexType>
><element name="zombie" type="t_zombie">
></element>
>
>Greetings
>
>Franz
>
>-----Ursprüngliche Nachricht-----
>Von: Jarmo Doc [mailto:jarmod@hotmail.com]
>Gesendet: Dienstag, 17. Januar 2006 01:24
>An: axis-user@ws.apache.org
>Betreff: wsdl2java and QName("a.b.c", ">classname")
>
>
>Why does Axis wsdl2java generate the ">" in the following?  What does it
>mean?
>
>- typeDesc.setXmlType(new javax.xml.namespace.QName("a.b.c",
>">myexception"));
>
>This also results in &gt;myexception in the server WSDD file after I deploy
>the service, for example:
>
>- <typeMapping
>deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
>encodingStyle="" qname="ns158:&gt;myexception"
>serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
>type="java:a.b.c.myexception" xmlns:ns158="a.b.c"/>
>
>Thanks.
>
>_________________________________________________________________
>Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ
>Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement