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/ ::
