public Port createPort() { return _def.createPort(); }
public Port createPort() { if (isDebugEnabled) { log.debug(myClassName + ".createPort()"); } if (wsdlDefinition != null) { return wsdlDefinition.createPort(); } return null; }
public Port createPort() { if (isDebugEnabled) { log.debug(myClassName + ".createPort()"); } if (wsdlDefinition != null) { return wsdlDefinition.createPort(); } return null; }
public Port createPort() { if (isDebugEnabled) { log.debug(myClassName + ".createPort()"); } if (wsdlDefinition != null) { return wsdlDefinition.createPort(); } return null; }
public Port createPort() { if (isDebugEnabled) { log.debug(myClassName + ".createPort()"); } if (wsdlDefinition != null) { return wsdlDefinition.createPort(); } return null; }
protected Port parsePort(Element portEl, Definition def) throws WSDLException Port port = def.createPort();
public Port createPort() { if (isDebugEnabled) { log.debug(myClassName + ".createPort()"); } getWrappedDefinitionForUse(); Port results = null; if (wsdlDefinition != null) { if (hasBeenSaved) { hasBeenUpdatedSinceSaving = true; } results = wsdlDefinition.createPort(); } doneUsingWrappedDefinition(); return results; }
public Port createPort() { if (isDebugEnabled) { log.debug(myClassName + ".createPort()"); } getWrappedDefinitionForUse(); Port results = null; if (wsdlDefinition != null) { if (hasBeenSaved) { hasBeenUpdatedSinceSaving = true; } results = wsdlDefinition.createPort(); } doneUsingWrappedDefinition(); return results; }
private void createPorts(Definition definition, Service service) throws WSDLException { for (Iterator<?> iterator = definition.getBindings().values().iterator(); iterator.hasNext();) { Binding binding = (Binding) iterator.next(); Port port = null; for (Iterator<?> iterator1 = service.getPorts().values().iterator(); iterator1.hasNext();) { Port existingPort = (Port) iterator1.next(); if (binding.equals(existingPort.getBinding())) { port = existingPort; } } if (port == null) { port = definition.createPort(); port.setBinding(binding); } populatePort(definition, port); if (StringUtils.hasText(port.getName())) { if (logger.isDebugEnabled()) { logger.debug("Adding port [" + port.getName() + "] to service [" + service.getQName() + "]"); } service.addPort(port); } } if (service.getPorts().isEmpty() && logger.isWarnEnabled()) { logger.warn("No ports were created, make sure the WSDL contains bindings"); } }
public Port createPort(Endpoint endpoint, WSDLBuilder builder, javax.wsdl.Binding wbinding) { SOAPAddressImpl add = new SOAPAddressImpl(); add.setLocationURI(endpoint.getUrl()); Port port = builder.getDefinition().createPort(); port.setBinding( wbinding ); port.setName( endpoint.getName().getLocalPart() ); port.addExtensibilityElement( add ); return port; }
public static javax.wsdl.Service doAppendService(Definition wsdlDefinition, String existPortName, ExtensionRegistry extReg, Binding binding) throws Exception { javax.wsdl.Service wsdlService = wsdlDefinition.createService(); wsdlService.setQName(new QName(wsdlDefinition.getTargetNamespace(), existPortName + serviceName)); Port port = wsdlDefinition.createPort(); port.setName(existPortName + portName); port.setBinding(binding); SOAPAddress address = PartialWSDLProcessor.setAddrElement(wsdlDefinition, port, extReg); port.addExtensibilityElement(address); wsdlService.addPort(port); return wsdlService; }
public static javax.wsdl.Service doAppendService(Definition wsdlDefinition, String existPortName, ExtensionRegistry extReg, Binding binding) throws Exception { javax.wsdl.Service wsdlService = wsdlDefinition.createService(); wsdlService.setQName(new QName(wsdlDefinition.getTargetNamespace(), existPortName + serviceName)); Port port = wsdlDefinition.createPort(); port.setName(existPortName + portName); port.setBinding(binding); SOAPAddress address = PartialWSDLProcessor.setAddrElement(wsdlDefinition, port, extReg); port.addExtensibilityElement(address); wsdlService.addPort(port); return wsdlService; }
public static javax.wsdl.Service doAppendService(Definition wsdlDefinition, String existPortName, ExtensionRegistry extReg, Binding binding) throws Exception { javax.wsdl.Service wsdlService = wsdlDefinition.createService(); wsdlService.setQName(new QName(wsdlDefinition.getTargetNamespace(), existPortName + serviceName)); Port port = wsdlDefinition.createPort(); port.setName(existPortName + portName); port.setBinding(binding); SOAPAddress address = PartialWSDLProcessor.setAddrElement(wsdlDefinition, port, extReg); port.addExtensibilityElement(address); wsdlService.addPort(port); return wsdlService; }
private void doAppendService() throws ToolException { if (service == null) { service = wsdlDefinition.createService(); service .setQName(new QName(WSDLConstants.WSDL_PREFIX, (String)env.get(ToolConstants.CFG_SERVICE))); } if (port == null) { port = wsdlDefinition.createPort(); port.setName((String)env.get(ToolConstants.CFG_PORT)); port.setBinding(binding); } setAddrElement(); service.addPort(port); wsdlDefinition.addService(service); }
private void doAppendService() throws ToolException { if (service == null) { service = wsdlDefinition.createService(); service .setQName(new QName(WSDLConstants.WSDL_PREFIX, (String)env.get(ToolConstants.CFG_SERVICE))); } if (port == null) { port = wsdlDefinition.createPort(); port.setName((String)env.get(ToolConstants.CFG_PORT)); port.setBinding(binding); } setAddrElement(); service.addPort(port); wsdlDefinition.addService(service); }
private void doAppendService() throws ToolException { if (service == null) { service = wsdlDefinition.createService(); service .setQName(new QName(WSDLConstants.WSDL_PREFIX, (String)env.get(ToolConstants.CFG_SERVICE))); } if (port == null) { port = wsdlDefinition.createPort(); port.setName((String)env.get(ToolConstants.CFG_PORT)); port.setBinding(binding); } setAddrElement(); service.addPort(port); wsdlDefinition.addService(service); }
public void generate() { Service service = definition.createService(); service.setQName(new QName(WSDLConstants.WSDL_PREFIX, wmodel.getServiceName())); Port port = definition.createPort(); port.setName(wmodel.getPortName()); Binding binding = definition.createBinding(); String targetNameSpace = wmodel.getTargetNameSpace(); binding.setQName(new QName(targetNameSpace, wmodel.getPortTypeName() + "Binding")); port.setBinding(binding); SOAPAddress soapAddress = null; try { soapAddress = (SOAPAddress)extensionRegistry .createExtension(Port.class, new QName(WSDLConstants.SOAP11_NAMESPACE, "address")); soapAddress.setLocationURI(ADDRESS_URI); } catch (WSDLException e) { throw new ToolException(e.getMessage(), e); } port.addExtensibilityElement(soapAddress); service.addPort(port); definition.addService(service); } }
public Port createPort(Definition definition, Binding binding, Service service, String uri) { try { Port port = definition.createPort(); port.setBinding(binding); configurePort(port, binding); if (uri != null) { ExtensibilityElement portExtension = definition.getExtensionRegistry().createExtension(Port.class, soapAddress); if (requiresSOAP12) { ((SOAP12Address)portExtension).setLocationURI(uri); } else { ((SOAPAddress)portExtension).setLocationURI(uri); } port.addExtensibilityElement(portExtension); } service.addPort(port); return port; } catch (WSDLException e) { throw new WSDLGenerationException(e); } }
public Port createPort(Definition definition, Binding binding, Service service, String uri) { try { Port port = definition.createPort(); port.setBinding(binding); configurePort(port, binding); if (uri != null) { ExtensibilityElement portExtension = definition.getExtensionRegistry().createExtension(Port.class, soapAddress); if (requiresSOAP12) { ((SOAP12Address)portExtension).setLocationURI(uri); } else { ((SOAPAddress)portExtension).setLocationURI(uri); } port.addExtensibilityElement(portExtension); } service.addPort(port); return port; } catch (WSDLException e) { throw new WSDLGenerationException(e); } }
public Port createPort(WSDLBuilder builder, javax.wsdl.Binding wbinding) { Transport t = builder.getTransportManager().getTransport(getBindingId()); if (!(t instanceof WSDL11Transport)) return null; WSDL11Transport transport = (WSDL11Transport) t; SOAPAddressImpl add = new SOAPAddressImpl(); add.setLocationURI(transport.getServiceURL(builder.getService())); Port port = builder.getDefinition().createPort(); port.setBinding( wbinding ); QName portName = (QName) builder.getService().getProperty(ObjectServiceFactory.PORT_NAME); if (portName != null) { port.setName(portName.getLocalPart()); } else { port.setName( builder.getService().getSimpleName() + transport.getName() + "Port" ); } port.addExtensibilityElement( add ); return port; } }