public void addService(Service service) { _def.addService(service); }
public void addService(Service service) { if (isDebugEnabled) { log.debug(myClassName + ".addService(" + service + ")"); } if (wsdlDefinition != null) { wsdlDefinition.addService(service); } }
public void addService(Service service) { if (isDebugEnabled) { log.debug(myClassName + ".addService(" + service + ")"); } if (wsdlDefinition != null) { wsdlDefinition.addService(service); } }
public void addService(Service service) { if (isDebugEnabled) { log.debug(myClassName + ".addService(" + service + ")"); } if (wsdlDefinition != null) { wsdlDefinition.addService(service); } }
def.addService(parseService(tempEl, def));
public void addService(Service service) { if (isDebugEnabled) { log.debug(myClassName + ".addService(" + service + ")"); } if (wsdlDefinition != null) { wsdlDefinition.addService(service); } }
/** * Parse the services in this document. */ public void parseServices() { for (int i = 0; i < services.size(); i++) { try { def.addService(parseService((Element)services.get(i), def)); } catch(WSDLException e) {} } }
public void addService(Service service) { if (isDebugEnabled) { log.debug(myClassName + ".addService(" + service + ")"); } getWrappedDefinitionForUse(); if (wsdlDefinition != null) { if (hasBeenSaved) { hasBeenUpdatedSinceSaving = true; } wsdlDefinition.addService(service); } doneUsingWrappedDefinition(); }
public void addService(Service service) { if (isDebugEnabled) { log.debug(myClassName + ".addService(" + service + ")"); } getWrappedDefinitionForUse(); if (wsdlDefinition != null) { if (hasBeenSaved) { hasBeenUpdatedSinceSaving = true; } wsdlDefinition.addService(service); } doneUsingWrappedDefinition(); }
private String getServiceOnly(Collection<Service> services, Definition definition) { try { Definition tempDefinition = WSDLComparisonUtils.getWSDLDefinition(); for (Service service : services) { tempDefinition.addService(service); } WSDLComparisonUtils.copyNamespaces(definition, tempDefinition); return WSDLComparisonUtils.getWSDLWithoutDeclaration(tempDefinition); } catch (WSDLException e) { log.error(e); return ""; } } }
public Service createService(Definition definition, PortType portType, String serviceName) { try { Service service = definition.createService(); configureService(definition, service, portType, serviceName); definition.addService(service); return service; } catch (WSDLException e) { throw new WSDLGenerationException(e); } }
public Service createService(Definition definition, PortType portType, String serviceName) { try { Service service = definition.createService(); configureService(definition, service, portType, serviceName); definition.addService(service); return service; } catch (WSDLException e) { throw new WSDLGenerationException(e); } }
private String getPortsOnly(Collection<Port> ports, Definition definition) { try { Definition tempDefinition = WSDLComparisonUtils.getWSDLDefinition(); Service service = tempDefinition.createService(); service.setQName(new QName(definition.getTargetNamespace(), "temp")); for (Port port : ports) { service.addPort(port); } tempDefinition.addService(service); WSDLComparisonUtils.copyNamespaces(definition, tempDefinition); String content = WSDLComparisonUtils.getWSDLWithoutDeclaration(tempDefinition); content = content.substring(content.indexOf(">") + 2); return content.replace("</wsdl:service>", ""); } catch (WSDLException e) { log.error(e); return ""; } } }
public Service createService(Definition definition, Binding binding, String serviceName) { try { Service service = definition.createService(); configureService(definition, service, binding.getPortType(), serviceName); definition.addService(service); return service; } catch (WSDLException e) { throw new WSDLGenerationException(e); } }
public Service createService(Definition definition, Binding binding, String serviceName) { try { Service service = definition.createService(); configureService(definition, service, binding.getPortType(), serviceName); definition.addService(service); return service; } catch (WSDLException e) { throw new WSDLGenerationException(e); } }
private void buildWSDLDefinition() { for (Definition def : importedDefinitions) { this.wsdlDefinition.addNamespace(def.getPrefix(def.getTargetNamespace()), def .getTargetNamespace()); Object[] services = def.getServices().values().toArray(); for (int i = 0; i < services.length; i++) { this.wsdlDefinition.addService((Service)services[i]); } Object[] messages = def.getMessages().values().toArray(); for (int i = 0; i < messages.length; i++) { this.wsdlDefinition.addMessage((Message)messages[i]); } Object[] bindings = def.getBindings().values().toArray(); for (int i = 0; i < bindings.length; i++) { this.wsdlDefinition.addBinding((Binding)bindings[i]); } Object[] portTypes = def.getPortTypes().values().toArray(); for (int i = 0; i < portTypes.length; i++) { this.wsdlDefinition.addPortType((PortType)portTypes[i]); } } }
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); } }