Ok,I see,thanks.

On Tue, Apr 21, 2009 at 11:41 PM, Raymond Feng <[email protected]> wrote:

> Let me try to see if we understand your question correctly.
>
> 1) You have an SCA component using java implementation. One of the business
> methods throws BizRuntimeException (which is a runtime exception instead of
> a checked exception)
> 2) You configure the component service to be exposed as a Web Service using
> Tuscany/SCA binding.ws
> 3) You have a web service client such as .NET that talks to the Web
> service. On the client side, there is no BizRuntimException java class (It
> will be true if the client is not java at all :-).
>
> IMO, the exception belongs to the contract between your client and the
> server. In your case, it's the WSDL. For runtime exceptions, I don't think
> we will generate WSDL faults. And the client side can probably see the
> stacktrace if the runtime exception is thrown. If you really need to parse
> the exception, it should be modeled as a checked exception on the java
> method and Java2WSDL will generate a corresponding fault element for that.
> On the client side, you can then parse that into a .NET data structure.
>
> Thanks,
> Raymond
>
> From: L. J.W
> Sent: Tuesday, April 21, 2009 4:09 AM
> To: [email protected]
> Subject: Re: about webservice exception process
>
>
>
> Hi simon,I mean that in server provider,if a service method throw a
> BizRuntimeException,how to catch this BizRuntimeException in service
> consumer(maybe java or .net),consumer not know BizRuntimeException class at
> all.
> need parse and analyse the fault soap message ?It seems a bit ugly,any
> beautiful resolution exist?any example?
>
>
> On Tue, Apr 21, 2009 at 5:29 PM, Simon Laws <[email protected]>
> wrote:
>
> On Tue, Apr 21, 2009 at 9:50 AM, L. J.W <[email protected]> wrote:
>
>> Hi all,how can I process exception in tuscany,for example:service provide
>> throw BizRuntimeException when process bizMethod,service consumer(don't
>> know
>> BizRuntimeException at all ) can only receive:
>>
>> org.osoa.sca.ServiceRuntimeException:
>> org.apache.tuscany.sca.interfacedef.util.FaultException:
>> com.wiscom.tuscany.demo.baseinfo.BizException
>>
>> any framework or util to process this common issue?
>>
>> Thanks.
>>
>
>
> Hi
>
> It's not clear if you are trying to understand a limitation of the
> Tuscany runtime or if this is the way that your application is
> structured.
>
> Are you saying that the service is implemented to throw
> BizRuntimeException but that the service interface, as described to
> the consumer of the service, can only see BizException?
>
> Regards
>
> Simon
>

Reply via email to