Skip to content

Custom XML File Names

Ryan Heaton edited this page Sep 17, 2015 · 1 revision

Custom XML File Names

Sometimes you want to change the name of your wsdl files or your schema files. The default name of each file is "[prefix].wsdl" for WSDL files and [prefix].xsd for schema files, where [prefix] is the prefix of the namespace to which that file applies. So if you customize the namespace prefix, your file will be renamed.

You can also customize the file name with the Enunciate configuration file. For example, if you'd like to name the WSDL file for the "http://api.mycompany.com/v1/services" namespace and the schema for the "http://api.mycompany.com/v1/data" namespace to be "services.ws" and "data.xs", respectively:

<enunciate>
 ...
 <modules>
   <idl>
     <wsdl namespace="http://api.mycompany.com/v1/services" file="services.ws"/>
     <schema namespace="http://api.mycompany.com/v1/data" file="data.xs"/>
   </idl>
 </modules>
</enuciate>
Clone this wiki locally