aspose file tools*
The moose likes Web Services and the fly likes wsdl design Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "wsdl design" Watch "wsdl design" New topic
Author

wsdl design

Ambika Jain
Ranch Hand

Joined: Jan 27, 2005
Posts: 48
Hi,

I have defined 15 methods in my wsdl and its too long to maintain. So I created a separate .xsd file to add all the types in it and updated the wsdl as :

<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://api.test.com">
<xsd:import schemaLocation="sch.xsd"/>
</xsd:schema>
</wsdl:types>

But still the remaining message, operation and binding makes the file too huge to go thru easily. Is there a way I have put these stuff in different file and call it from .wsdl. OR any other pattern?

Thanks,
Amba


Ambika Jain
Ravi Kishore
Greenhorn

Joined: Mar 22, 2005
Posts: 15
Hi Joshi,

one possible solution could be as follows:
1) define the schema in a seperate xsd file
2) import/ include this schema in to the wsdl that defines messages and porttypes
3) import/include the wsdl defined in step-2 in to another wsdl which defines binding and services
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: wsdl design