This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Web Services and the fly likes WSDL to service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL to service" Watch "WSDL to service" New topic

WSDL to service

Anjali S Sharma
Ranch Hand

Joined: Jun 29, 2005
Posts: 279
I have the following XSD "Template_Service_Schema.xsd"

and the below WSDL

When I try to generate the service stubs from this, it gives me the following error

Please let me know how to resolve this problem.
Thank you
Ankit Garg

Joined: Aug 03, 2008
Posts: 9400

Change your code of XSD from this

to this

You were defining a complex type not an element which you are referring in your WSDL at

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Anjali S Sharma
Ranch Hand

Joined: Jun 29, 2005
Posts: 279
Thanks a lot Ankit.
I agree. Here's the link:
subject: WSDL to service
It's not a secret anymore!