In the past, before Spring Web Services, I've used wsdl that looked like this:
The idea, of course, is that the consumer of the wsdl has some idea which operations return which custom soap faults.
<wsdl:fault name="ErrorCodeFault" message="useradmin:ErrorCodeFault"/>
So far I've been using generated wsdl for my Spring Web Services project. I've got the custom soap fault defined in the xsd:
Is there any easy or well known way to get the generated wsdl to include the fault element?
<element name="ErrorMessage" type="string"/>
<element name="ErrorCode" type="string"/>
<element name="Login" type="string"/>