Hi all,
I do a sample which has a parameter's type is DataObject,and deploy the
component with webservice.
When I invoke the service ,throws an error.
Is my usage wrong?
My sample like this.
helloworld.composite
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
targetNamespace="http://helloworld"
xmlns:hw="http://helloworld"
name="helloworldws">
<component name="HelloWorldServiceComponent">
<implementation.java class="helloworld.HelloWorldImpl" />
<service name="HelloWorldService">
<interface.wsdl
interface="http://helloworld#wsdl.interface(HelloWorld)" />
<binding.ws/>
</service>
</component>
</composite>
HelloWorldImpl.java
@Service(HelloWorldService.class)
public class HelloWorldImpl implements HelloWorldService {
public String getGreetings(DataObject name) {
return "Hello " + name.getString("first") + " " +
name.getString("last");
}
}
You can download the full testcase on
http://www.blogjava.net/Files/wangfeng/src.zip
Thanks
Wang Feng
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]