serverFactory.setWsdlURL(getWsdlLocation());
/** * {@inheritDoc} */ public synchronized Endpoint publish(ServiceDomain domain, final SOAPBindingModel config, final String bindingId, final InboundHandler handler, WebServiceFeature... features) { CXFJettyEndpoint wsEndpoint = null; try { initialize(config); Map<String, Object> properties = new HashMap<String, Object>(); properties.put(javax.xml.ws.Endpoint.WSDL_SERVICE, config.getPort().getServiceQName()); properties.put(javax.xml.ws.Endpoint.WSDL_PORT, config.getPort().getPortQName()); properties.put(MessageContext.WSDL_DESCRIPTION, getWsdlLocation()); String publishUrl = HTTP_SCHEME + "://" + config.getSocketAddr().getHost() + ":" + config.getSocketAddr().getPort() + "/" + getContextPath(); wsEndpoint = new CXFJettyEndpoint(bindingId, config, handler, new AddressingInterceptor(), features); //wsEndpoint.getEndpoint().setProperties(properties); wsEndpoint.getEndpoint().setWsdlURL(getWsdlLocation()); wsEndpoint.getEndpoint().setServiceName(config.getPort().getServiceQName()); wsEndpoint.publish(publishUrl); } catch (MalformedURLException e) { throw new WebServicePublishException(e); } return wsEndpoint; } }
/** * {@inheritDoc} */ public synchronized Endpoint publish(ServiceDomain domain, final SOAPBindingModel config, final String bindingId, final InboundHandler handler, WebServiceFeature... features) { CXFJettyEndpoint wsEndpoint = null; try { initialize(config); Map<String, Object> properties = new HashMap<String, Object>(); properties.put(javax.xml.ws.Endpoint.WSDL_SERVICE, config.getPort().getServiceQName()); properties.put(javax.xml.ws.Endpoint.WSDL_PORT, config.getPort().getPortQName()); properties.put(MessageContext.WSDL_DESCRIPTION, getWsdlLocation()); String publishUrl = HTTP_SCHEME + "://" + config.getSocketAddr().getHost() + ":" + config.getSocketAddr().getPort() + "/" + getContextPath(); wsEndpoint = new CXFJettyEndpoint(bindingId, handler, new AddressingInterceptor(), features); //wsEndpoint.getEndpoint().setProperties(properties); wsEndpoint.getEndpoint().setWsdlURL(getWsdlLocation()); wsEndpoint.getEndpoint().setServiceName(config.getPort().getServiceQName()); wsEndpoint.publish(publishUrl); } catch (MalformedURLException e) { throw new WebServicePublishException(e); } return wsEndpoint; } }
/** * {@inheritDoc} */ public synchronized Endpoint publish(ServiceDomain domain, final SOAPBindingModel config, final String bindingId, final InboundHandler handler, WebServiceFeature... features) { CXFJettyEndpoint wsEndpoint = null; try { initialize(config); String publishUrl = "/" + getContextPath(); wsEndpoint = new CXFJettyEndpoint(bindingId, handler, new AddressingInterceptor(), features); wsEndpoint.getEndpoint().setWsdlURL(getWsdlLocation()); wsEndpoint.getEndpoint().setServiceName(config.getPort().getServiceQName()); wsEndpoint.publish(publishUrl); } catch (MalformedURLException e) { throw new WebServicePublishException(e); } return wsEndpoint; }
factoryBean.setInvoker(invoker); factoryBean.setBindingId("http://cxf.apache.org/bindings/xformat"); factoryBean.setWsdlURL("cxf6866.wsdl"); servers.add(factoryBean.create());
serverFactory.setWsdlURL(getWsdlLocation());