mattrpav wrote:
For example.. a web service that has an operation called "getCustomer(int
customerId)" (with no fault defined).. if the customer does not exist, I
would throw an exception (from inside the cxf-se) with a message that says
"Customer x does not exist.". Currently, the message returned to the client
is "Fault has occurred ..."
What is the proper way to build a CXF WS on ServiceMix so that exception
messages are returned to the client? SoapFault defined in the WSDL? If so,
custom type, or standard type?
Define the fault(especially the exception you already know would throw,
as your scenario) in the wsdl is best practice, so that you can get
exception class type as you define after unmarshalling.
I'm not sure what you mean custom type or standard type here, could you
please explain more?
You can define anything of fault in the wsdl, just like a normal in or
out message.
Freeman
Any examples would be appreciated.
Thanks!
Matt Pavlovich