@Test
public void testDocumentationOnSEI() throws Exception {
//CXF-3093
EndpointImpl ep = (EndpointImpl)Endpoint.publish("local://foo", new CXF3093Impl());
ServiceWSDLBuilder wsdlBuilder =
new ServiceWSDLBuilder(bus, ep.getService().getServiceInfos().get(0));
Definition def = wsdlBuilder.build();
Document d = bus.getExtension(WSDLManager.class).getWSDLFactory().newWSDLWriter().getDocument(def);
//org.apache.cxf.helpers.XMLUtils.printDOM(d);
assertXPathEquals("//wsdl:definitions/wsdl:documentation", "My top level documentation",
d.getDocumentElement());
assertXPathEquals("//wsdl:definitions/wsdl:portType/wsdl:documentation", "My portType documentation",
d.getDocumentElement());
assertXPathEquals("//wsdl:definitions/wsdl:binding/wsdl:documentation", "My binding doc",
d.getDocumentElement());
JaxwsServiceBuilder builder = new JaxwsServiceBuilder();
builder.setServiceClass(CXF3093Impl.class);
ServiceInfo serviceInfo = builder.createService();
wsdlBuilder = new ServiceWSDLBuilder(bus, serviceInfo);
def = wsdlBuilder.build();
d = bus.getExtension(WSDLManager.class).getWSDLFactory().newWSDLWriter().getDocument(def);
//org.apache.cxf.helpers.XMLUtils.printDOM(d);
assertXPathEquals("//wsdl:definitions/wsdl:documentation", "My top level documentation",
d.getDocumentElement());
assertXPathEquals("//wsdl:definitions/wsdl:portType/wsdl:documentation", "My portType documentation",