Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

deserialization error: XML reader error: unexpected character content:

843833Jul 18 2007 — edited Aug 28 2007
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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 25 2007
Added on Jul 18 2007
3 comments
825 views