tuscany-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raymond Feng" <enjoyj...@gmail.com>
Subject Re: calling webservice using service interface only
Date Tue, 03 Apr 2007 16:32:30 GMT
Hi, muhwas.

What level of Tuscany code are you evaluating? And what hosting environment 
do you plan to run Tuscany?

The latest SCA 1.0 java spec intentionally leaves the way for non-component 
client to get the ComponentContext to be vendor specific. At the moment in 
Tuscany, you might to want to look at the following code:

https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/runtime/embedded/src/main/java/org/apache/tuscany/api/SCARuntime.java

Back to the question that you prefer not to use Tuscany-specific code in the 
client, are you looking for a launcher?

Sorry for all the questions. But they will probably help us better 
understand your requirements.

Thanks,
Raymond

----- Original Message ----- 
From: "muhwas" <muhwas74@yahoo.com>
To: <tuscany-user@ws.apache.org>; <tuscany-dev@ws.apache.org>
Sent: Monday, April 02, 2007 1:21 PM
Subject: calling webservice using service interface only


> Hi guys,
>
> How i can call a tuscany java web service using a
> service interface only. I don't want any tuscany
> related code inside client code
>
> CompositeContext compositeContext =
> CurrentCompositeContext.getContext();
>
> compositeContext.locateService(service.class,
> "ServiceClientComponent");
>
> inside client code.
>
> thanks,
> muhwas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Mime
View raw message