本帖最后由 maosijunzi 于 2012-10-23 10:39:51 编辑 服务端发布composite文件代码:
<component name="HelloComponent">
<implementation.java class="hello.HelloImpl"/>
<service name="Hello">
<interface.java interface="hello.Hello"/>
<binding.ws uri="http://localhost:8080/scaServer/HelloWorld"/>
</service>
</component>
服务接口:
package hello;
import org.osoa.sca.annotations.Remotable;
@Remotable
public interface Hello {
public String sayHello(String world);
}
服务实现类:
package hello;
public class HelloImpl implements Hello {
public String sayHello(String world) {
return "hello "+world;
}
}
请问客户端用sca应该怎么访问??????
------解决方案--------------------
高手呢?高手呢?
------解决方案--------------------
中魔了这是?木有人呢?
------解决方案--------------------
问题解决了.. 客户端最好不要用SCA,用其他的一些框架做客户端,比如CXF.