aspose file tools*
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
Author

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
Sheriff

Joined: Aug 03, 2008
Posts: 9302
    
  17

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: http://aspose.com/file-tools
 
subject: WSDL to service