Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wsdl design

 
Ambika Jain
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ravi Kishore
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic