Hi,
In the 2nd case, the service is exposed using binding.ws. But the reference
uses the binding.sca (without an explicit binding, it's default to
binding.sca). The wiring should complain that the bindings are not
compatible.
Thanks,
Raymond
--------------------------------------------------
From: "wang feng" <[EMAIL PROTECTED]>
Sent: Monday, March 03, 2008 10:54 PM
To: "tuscany-dev" <[email protected]>
Subject: Deploy a web service ,but not to target with reference
Hi,all.
I have deployed a component service with web service, and have made a
reference to it.
I have two ways to reference,but only the first is ok,what wrong is the
second?
first:
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
targetNamespace="http://helloworldsdo"
name="hellojavaws">
<component name="HelloWorldServiceJavaComponent">
<implementation.java
class="com.primeton.demo.helloworld.HelloWorldImpl" />
<service name="HelloWorldService">
<interface.wsdl
interface="http://helloworldsdo#wsdl.interface(HelloWorld)" />
<binding.ws/>
</service>
</component>
<component name="HelloWorldServiceJavaInvokeComponent">
<implementation.java
class="com.primeton.demo.helloworld.HelloWorldServiceComponent"/>
</component>
<reference name="HelloWorldServiceJava"
promote="HelloWorldServiceJavaInvokeComponent/helloWorldService">
<interface.java
interface="com.primeton.demo.helloworld.HelloWorldService" />
<binding.ws
wsdlElement="http://helloworldsdo#wsdl.port(HelloWorldService/HelloWorldSoapPort)"/>
</reference>
</composite>
second:
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
targetNamespace="http://helloworldsdo"
name="hellojavaws">
<component name="HelloWorldServiceJavaComponent">
<implementation.java
class="com.primeton.demo.helloworld.HelloWorldImpl" />
<service name="HelloWorldService">
<interface.wsdl
interface="http://helloworldsdo#wsdl.interface(HelloWorld)" />
<binding.ws/>
</service>
</component>
<component name="HelloWorldServiceJavaInvokeComponent">
<implementation.java
class="com.primeton.demo.helloworld.HelloWorldServiceComponent"/>
<reference name="helloWorldService"
target="HelloWorldServiceJavaComponent"/>
</component>
</composite>
--------------
wang feng
2008-03-04
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]