Hi, Karl-Heinz,

first of all, please be so kind to subscribe to the jaxme-dev mailing
list, before posting. Otherwise, I have to approve any mail from you
manually, which takes time. Apart from that, you risk that I decide
wrong, because your mail is just one within a bunch of spam mails,
which I reject.

On 5/29/07, Karl Heinz <[EMAIL PROTECTED]> wrote:

I found out, that a similar bug has been detected about a year ago.

see http://issues.apache.org/jira/browse/AXIS2-534

Right, the problem is just like described there:

                        <xs:element name="Message" type="ns:Message" />
                        <xs:complexType name="Message">

You have an element and a complexType, which are both named "Message".
In other words, the generator would like to create two different
classes, both named "Message", which he rejects.

Either rename the element or the type (don't use the name
"MessageType", btw, which is a similar gotcha), or use a custom
binding element like jxb:class to rename either of the generated
classes. See

   
http://java.sun.com/webservices/docs/1.5/tutorial/doc/JAXBUsing4.html#wp148576

for renaming classes.


Jochen


--
Women have the ability to wind you round their little finger.
Daughters can use all of the fingers together.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to