? cbServiceName.getLocalPart() + "Port" : cbInfo.getCallbackPortName()); serverFactory.setServiceName(cbServiceName); serverFactory.setEndpointName(cbEndpointName); final List<AbstractServiceConfiguration> svcConfigs =
protected void run() { try { JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean(); factory.setBus(getBus()); factory.setWsdlLocation("classpath:/swa-mime_jms.wsdl"); factory.setTransportId(SoapJMSConstants.SOAP_JMS_SPECIFICIATION_TRANSPORTID); factory.setServiceName(new QName("http://cxf.apache.org/swa", "SwAService")); factory.setEndpointName(new QName("http://cxf.apache.org/swa", "SwAServiceJMSPort")); factory.setAddress(ADDRESS + broker.getEncodedBrokerURL()); factory.setServiceBean(new SwAServiceImpl()); factory.create().start(); } catch (Exception e) { e.printStackTrace(); Thread.currentThread().interrupt(); } } }
/** * {@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; } }
protected void run() { String address0 = "http://localhost:" + PORT0 + "/SoapExtHeader/SampleService"; Object implementor1 = new SamplePortTypeImpl(); Endpoint.publish(address0, implementor1); String address1 = "http://localhost:" + PORT1 + "/SoapExtHeader/SampleService"; JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean(); sf.setServiceClass(SamplePortTypeImpl.class); WebServiceClient webService = SampleService.class.getAnnotation(WebServiceClient.class); sf.setServiceName(new QName(webService.targetNamespace(), webService.name())); sf.setWsdlLocation(webService.wsdlLocation()); sf.setAddress(address1); extserver = sf.create(); }
/** * {@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; }
factory.setWsdlLocation(wsdlLoc); factory.setBindingId(binding); factory.setServiceName(new QName(tgtNmspc, svcNm)); factory.setEndpointName(new QName(tgtNmspc, portNm)); ep = new EndpointImpl(bus, this, factory);
factory.setWsdlLocation(wsdlLoc); factory.setBindingId(binding); factory.setServiceName(new QName(tgtNmspc, svcNm)); factory.setEndpointName(new QName(tgtNmspc, portNm)); ep = new EndpointImpl(bus, this, factory);