File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes inner class problem with xjc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "inner class problem with xjc" Watch "inner class problem with xjc" New topic
Author

inner class problem with xjc

siva venkata prasad
Greenhorn

Joined: Jul 14, 2011
Posts: 17
Hi ,

Can anyone please provide an idea to solve the below problem.

Below part of xml is part of xsd file which intern is used by WSDL file..
<xs:element name="ABC" minOccurs="0" maxOccurs="60">
<xs:complexType>
<xs:sequence>
<xs:element name="test">
<xs:complexType>
<xs:sequence>
<xs:element name="test" minOccurs="0" maxOccurs="9">
<xs:complexType>

with the above xsd,, inner class and enclosing class are getting generated with same class name "test" while generating the client using wsimport & xjc and causing fault source code creation.

Please provide how to handle with this..
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3816

...while generating the client using wsimport & xjc and causing fault source code creation.

What are the errors/faults?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
jQuery in Action, 2nd edition
 
subject: inner class problem with xjc
 
Similar Threads
converting xsd to html
Axis2 POJO web service - wsdl generating xs:anyType
XmlException on calling WSDL2Java
XML schema fails to load
JAXB XJC compiling Issue