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.Code:<wsdl:operation name="GetUser"> <wsdl:input message="useradmin:GetUser"/> <wsdl:output message="useradmin:GetUserResponse"/> <wsdl:fault name="ErrorCodeFault" message="useradmin:ErrorCodeFault"/> </wsdl:operation>
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?Code:<element name="GetUserRequestFault"> <complexType> <sequence> <element name="ErrorMessage" type="string"/> <element name="ErrorCode" type="string"/> <element name="Login" type="string"/> </sequence> </complexType> </element>


Reply With Quote