Hey Guys,
I'm working on building a web services framework and I'm having some trouble getting javax.ws.Service stuff to handle my faults correctly. I've got everything else working, but I just can't seem to get the faults to do anything other than be returned as SOAPFaultException. The generated exception seems to have my faultstring mapped to the "detailMessage" field and everything else is null. I know it sounds silly to make something from scratch, but I just wanted something very bare bones and had some additional business requirements to work through, so... with that being said... here we are :-)
The WSDL is generated from the Server side service with Exceptions being mapped to various types and such. The "MerchantNotFoundException" looks like this:
with the message being:
Port:
and finally, the binding:
So, the server generates the following
SOAP response when a MerchantNotFoundException is thrown:
I was under the impression that the javax.ws packages would automatically map to the MerchantNotFoundException based on the content of the detail portion of the SOAP fault. Unfortunately, I simply can not get it to behave that way, and always get a SOAPFaultException with very limited details. I have used CXF 2.2.5 wsdl2java to make my client and everything there looks like it has been generated nicely, but it just won't map that darn exception correctly! I'm
sure that I'm missing something in the generation, but I cannot find it for the life of me. Is there anything that is very obviously wrong?
I know that this is a complex mess of code but I really appreciate any light you can shine on this for me!
Thanks!
Evan