Search in sources :

Example 1 with FooServiceImpl

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);
}
Also used : FooServiceImpl(org.apache.cxf.jaxws.service.FooServiceImpl) Server(org.apache.cxf.endpoint.Server) Document(org.w3c.dom.Document) Test(org.junit.Test)

Aggregations

Server (org.apache.cxf.endpoint.Server)1 FooServiceImpl (org.apache.cxf.jaxws.service.FooServiceImpl)1 Test (org.junit.Test)1 Document (org.w3c.dom.Document)1