日期:2014-05-19 浏览次数:20734 次
<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;
}
}