use of org.apache.cxf.jaxws.EndpointImpl in project cxf by apache.
the class ProviderJMSContinuationTest method startServers.
@BeforeClass
public static void startServers() throws Exception {
startBusAndJMS(ProviderJMSContinuationTest.class);
Object implementor = new HWSoapMessageDocProvider();
String address = "jms:queue:test.jmstransport.text?replyToQueueName=test.jmstransport.text.reply";
EndpointImpl ep = (EndpointImpl) Endpoint.create(implementor);
ep.getInInterceptors().add(new IncomingMessageCounterInterceptor());
ep.setBus(bus);
ep.getFeatures().add(cff);
ep.publish(address);
}
use of org.apache.cxf.jaxws.EndpointImpl in project cxf by apache.
the class SoapJmsSpecTest method startServers.
@BeforeClass
public static void startServers() throws Exception {
startBusAndJMS(SoapJmsSpecTest.class);
publish("jms:queue:test.cxf.jmstransport.queue2", new GreeterSpecImpl());
publish("jms:queue:test.cxf.jmstransport.queue5", new GreeterSpecWithPortError());
EndpointImpl ep = (EndpointImpl) Endpoint.create(null, new GreeterSpecImpl());
ep.setBus(bus);
ep.getFeatures().add(new GZIPFeature());
ep.getFeatures().add(cff);
ep.publish("jms:queue:test.cxf.jmstransport.queue6");
}
use of org.apache.cxf.jaxws.EndpointImpl in project cxf by apache.
the class AbstractVmJMSTest method publish.
public static void publish(String address, Object impl) {
EndpointImpl ep = (EndpointImpl) Endpoint.create(impl);
ep.setBus(bus);
ep.getFeatures().add(cff);
ep.publish(address);
}
use of org.apache.cxf.jaxws.EndpointImpl in project cxf by apache.
the class MissingQualification1226Test method lookForMissingNamespace.
@Test
public void lookForMissingNamespace() throws Exception {
EndpointImpl endpoint = getBean(EndpointImpl.class, "helloWorld");
Document d = getWSDLDocument(endpoint.getServer());
NodeList schemas = assertValid("//xsd:schema[@targetNamespace='http://nstest.helloworld']", d);
Element schemaElement = (Element) schemas.item(0);
String ef = schemaElement.getAttribute("elementFormDefault");
assertEquals("qualified", ef);
}
use of org.apache.cxf.jaxws.EndpointImpl in project cxf by apache.
the class UTServer method run.
protected void run() {
DoubleItPortTypeImpl implementor = new DoubleItPortTypeImpl();
implementor.setEnforcePrincipal(false);
String address = "http://localhost:" + PORT + "/DoubleItUsernameToken3";
EndpointImpl jaxWsEndpoint = (EndpointImpl) Endpoint.publish(address, implementor);
Map<String, Object> properties = new HashMap<>();
properties.put("action", "UsernameToken");
properties.put("passwordCallbackClass", "org.apache.cxf.systest.ws.common.UTPasswordCallback");
WSS4JInInterceptor wss4jInInterceptor = new WSS4JInInterceptor(properties);
jaxWsEndpoint.getServer().getEndpoint().getInInterceptors().add(wss4jInInterceptor);
}
Aggregations