Hi,
I'm just learning to write web services. I pasted the service and it seems to work.
It's code is :
package server;
import javax.jws.WebService;
public class HelloImpl {
/**
* @param name
* @return Say hello to the person.
*/
public String sayHello(String name) {
return "Hello, " + name + "!";
}
}
I wired the service using spring, following the tutorial :
public class HellowsImpl {
String name;
public HellowsImpl() {
}
private Hellows service;
public void setService(Hellows service) {
this.service = service;
}
public void sayHi() {
try {
service.sayHello(name);
} catch (RemoteException e) {
// TODO
}
}
public Hellows getService() {
return service;
}
public void setName(String name) {
this.name = name;
}
}
But when I try this :
HellowsImpl service ;
service=(HellowsImpl)ac.getBean("hellowsclient");
service.sayHi();
I get the exception :
Caught exception while handling request: deserialization error: XML reader error: unexpected character content: "fd"
Where might be the problem?