wood burning stoves 2.0*
The moose likes Web Services and the fly likes webService POC Design Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "webService POC Design" Watch "webService POC Design" New topic

webService POC Design

Janardan Kelkar
Ranch Hand

Joined: May 05, 2008
Posts: 72

I have developed a web service that provides four operations for insert/update/select/delete of a customer object from/into a local mysql database. I have created the following files in eclipse:
1) A customer class to represent a customer (contains only private fields and their getters and setters)
2) A web service annotated class that provides the four operations.

I have packaged these files into a WAR and deployed to JBoss. The webservice works, as i have created clients in java and another middleware tool as well.
Now, the WSDL that is generated for the above service, contains inline definition of the customer (complexType). I want to know if i can separate out the customer definition into an XML schema file. I want to be able to do this in such a way that the WSDL generated, automatically references the external schema. I am not sure how to go about doing this.

Has it got anything to do with the Binding annotation in the webservice class ?

Any suggestions ?


When the compiler's not happy, ain't nobody happy.
Meghana Reddy
Ranch Hand

Joined: Jan 29, 2002
Posts: 76
The wsgen tool by default generates WSDL and XSDs in separate files by default.
This can be controlled by the option inlineSchemas.
This is if you are using jaxws.

Meghana Reddy
I agree. Here's the link: http://aspose.com/file-tools
subject: webService POC Design
Similar Threads
How best to deal with Interface Return Type for Web Service Method
Axis2 1.4 Client Transport error: 501 Error: Not Implemented
When the server generates WSDL during deployment of web service?
Create a WebService (REST) using WSDL
Struggling with use of my Webservice from PHP client.