Hi!
A have following JAX-WS service:
@WebService(endpointInterface = "demo.hw.server.HelloWorld",
serviceName = "HelloWorld")
public class HelloWorldImpl implements HelloWorld {
public List<MyBean> getBean(String smth) {
return Arrays.asList(new MyBean[] { new MyBean() });
}
}
@XmlType(namespace = "http://server.hw.demo/")
public class MyBean {
private String smth;
public String getSmth() {
return smth;
}
public void setSmth(String smth) {
this.smth = smth;
}
}
When I'm trying to call this service I get exception:
javax.xml.bind.JAXBException: java.util.List is not known to this context
On JAXWS-RI this works fine and correct result received.
What's wrong? How to fix this?
Thanks in advance!