This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I am creating few WSDLs and I want to share the error messages across these WSDL. Currently I am repeating the error messages in all the WSDL files. Is there a way to put all the common messages and re-use it in different WSDL. Please assist.
Move all the common elements to .xsd file (for example common.xsd) and import that common.xsd file into each individual wsdl files.
Example: In wsdl as below
<schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="your name space">
<include schemaLocation="common.xsd"/> // put common.xsd in the same folder as wsdl.
You can also extend the common element (in this case your error message element) to add more info, like
<extension base="tns:ErrorMessage"> // this is your common error message element
<element name="AdditionalInfo" type="tns:AdditionalInfo" minOccurs="0" nillable="true"/>
.. you can add more elements here ..