use of org.apache.cxf.jaxws.EndpointImpl in project survey by markoniemi.
the class WebServiceConfig method userServiceEndpoint.
@Bean
public Endpoint userServiceEndpoint() {
EndpointImpl endpoint = new EndpointImpl(bus, userService);
endpoint.setAddress("/soap/userService");
endpoint.publish("/soap/userService");
return endpoint;
}
use of org.apache.cxf.jaxws.EndpointImpl in project survey by markoniemi.
the class WebServiceConfig method fileServiceEndpoint.
@Bean
public Endpoint fileServiceEndpoint() {
EndpointImpl endpoint = new EndpointImpl(bus, fileService);
endpoint.setAddress("/soap/fileService");
endpoint.publish("/soap/fileService");
return endpoint;
}
use of org.apache.cxf.jaxws.EndpointImpl in project cxf by apache.
the class WSDiscoveryServiceImpl method startup.
public synchronized boolean startup(boolean optional) {
String preferIPv4StackValue = System.getProperty("java.net.preferIPv4Stack");
String preferIPv6AddressesValue = System.getProperty("java.net.preferIPv6Addresses");
if (!started && client.isAdHoc()) {
Bus b = BusFactory.getAndSetThreadDefaultBus(bus);
try {
udpEndpoint = new EndpointImpl(bus, new WSDiscoveryProvider());
Map<String, Object> props = new HashMap<>();
props.put("jaxws.provider.interpretNullAsOneway", "true");
udpEndpoint.setProperties(props);
if ("true".equals(preferIPv6AddressesValue) && "false".equals(preferIPv4StackValue)) {
try {
udpEndpoint.publish("soap.udp://[FF02::C]:3702");
started = true;
} catch (Exception e) {
LOG.log(Level.WARNING, "Could not start WS-Discovery Service with ipv6 address", e);
}
}
if (!started) {
udpEndpoint.publish("soap.udp://239.255.255.250:3702");
started = true;
}
} catch (RuntimeException ex) {
if (!optional) {
throw ex;
}
LOG.log(Level.WARNING, "Could not start WS-Discovery Service.", ex);
} finally {
if (b != bus) {
BusFactory.setThreadDefaultBus(b);
}
}
}
return true;
}
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 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);
}
Aggregations