WebService 服务端使用SCA发布服务,客户端用sca怎么访问?
本帖最后由 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;
}
}