Thank you, Simon. I have define own public exception extend Exception, but not in the some package, so is some error.
now, i will package a new tuscany jar with changed source from svn trunk to resolve this bug. Thanks again. On Wed, Aug 8, 2012 at 6:08 PM, Simon Nash <[email protected]> wrote: > Jet Knight wrote: >> >> Hi,all >> >> I use tuscany sca (1.6.2) publish java bean to WebService with >> binding.ws, e.g. "<binding.ws uri="/ws/Test" />"; >> >> But this binding.ws auto generated WSDL is wrong format. (e.g. >> http://localhost/xx/ws/Test?wsdl) >> >> (cut) > >> >> >> ------------------------------------------------------------------- >> It this a BUG? some suggestion??? >> >> > > Yes, this is a bug. It was reported as TUSCANY-3778 and it was fixed > in the 1.x trunk under revision r1036533. > > It's not a good idea to throw java.lang.Exception from a Web Service > interface. Web Service faults are supposed to be language neutral, > and java.lang.Exception is specific to Java. > > The best solution is to create your own exception type that extends > java.lang.Exception, and use this exception type in your Web Service > interface. If you define this exception type in the com.shine.test > package, the generated WSDL will be correct. > > Simon -- Jet Knight
