use of org.apache.cxf.jaxws.service.EchoFoo in project cxf by apache.
the class SchemaFirstTest method testEndpoint.
@Test
public void testEndpoint() throws Exception {
JaxWsServerFactoryBean svr = new JaxWsServerFactoryBean();
svr.setBus(bus);
svr.setServiceBean(new EchoFoo());
svr.setAddress("http://localhost:9000/hello");
List<String> schemas = new ArrayList<>();
schemas.add("/org/apache/cxf/jaxws/service/echoFoo.xsd");
svr.setSchemaLocations(schemas);
Server server = svr.create();
Document d = getWSDLDocument(server);
// XmlSchema still isn't preserving all the extra info...
assertValid("//xsd:complexType[@name='foo']/xsd:sequence", d);
}