ok, thanks a lot for your responses and your help Andrew. tugdual
Andrew Clegg-2 wrote: > > 2009/6/24 tutu <[email protected]>: >> >> thanks for your response andrew, >> so i must put my 500 code in a SAUP Fault with my message? Is that right? >> Do > > Don't think in terms of HTTP error codes -- these are not really > relevant to SOAP, for the reasons I mentioned. > > A SOAP client will see a SOAP fault and handle it appropriately, e.g. > a Java one will turn it into an exception on the client side. > >> you know the easiest way >> to add SAUP faults to a webservice wsdl-first? > > Have a look at some of Glen's tutorials, e.g.: > > http://www.jroller.com/gmazza/entry/database_crud_actions_with_web > > You can also throw any unchecked exception from a web service, and > it'll be converted to a SOAP fault automatically, but it is better > practice to declare them in the WSDL. > > Andrew. > > -- > :: http://biotext.org.uk/ :: > > -- View this message in context: http://www.nabble.com/Does-CXF-web-service-can-return-HTTP-exceptions--tp24180699p24181914.html Sent from the cxf-user mailing list archive at Nabble.com.
