use of org.apache.cxf.jaxws.service.FooServiceImpl in project cxf by apache.
the class CodeFirstTest method testNamespacedWebParamsWrapped.
@Test
public void testNamespacedWebParamsWrapped() throws Exception {
JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
sf.setAddress("local://localhost/test");
sf.setServiceBean(new FooServiceImpl());
sf.getServiceFactory().setWrapped(true);
Server server = sf.create();
Document doc = getWSDLDocument(server);
// DOMUtils.writeXml(doc, System.out);
assertValid("//xsd:schema[@targetNamespace='http://namespace3']", doc);
assertValid("//xsd:schema[@targetNamespace='http://namespace5']", doc);
}
Aggregations