public void addPortType(PortType portType) { _def.addPortType(portType); }
public void addPortType(PortType portType) { if (isDebugEnabled) { log.debug(myClassName + ".addPortType(" + portType + ")"); } if (wsdlDefinition != null) { wsdlDefinition.addPortType(portType); } }
public void addPortType(PortType portType) { if (isDebugEnabled) { log.debug(myClassName + ".addPortType(" + portType + ")"); } if (wsdlDefinition != null) { wsdlDefinition.addPortType(portType); } }
def.addPortType(parsePortType(tempEl, def));
public void addPortType(PortType portType) { if (isDebugEnabled) { log.debug(myClassName + ".addPortType(" + portType + ")"); } if (wsdlDefinition != null) { wsdlDefinition.addPortType(portType); } }
public void addPortType(PortType portType) { if (isDebugEnabled) { log.debug(myClassName + ".addPortType(" + portType + ")"); } if (wsdlDefinition != null) { wsdlDefinition.addPortType(portType); } }
def.addPortType(portType);
/** * Parse the portTypes in this document. */ public void parsePorttypes() { for (int i = 0; i < porttypes.size(); i++) { try { PortType pt = parsePortType((Element)porttypes.get(i), def); if (pt != null) { def.addPortType(pt); } } catch(WSDLException e) {} } }
public void addPortType(PortType portType) { if (isDebugEnabled) { log.debug(myClassName + ".addPortType(" + portType + ")"); } getWrappedDefinitionForUse(); if (wsdlDefinition != null) { if (hasBeenSaved) { hasBeenUpdatedSinceSaving = true; } wsdlDefinition.addPortType(portType); } doneUsingWrappedDefinition(); }
public void addPortType(PortType portType) { if (isDebugEnabled) { log.debug(myClassName + ".addPortType(" + portType + ")"); } getWrappedDefinitionForUse(); if (wsdlDefinition != null) { if (hasBeenSaved) { hasBeenUpdatedSinceSaving = true; } wsdlDefinition.addPortType(portType); } doneUsingWrappedDefinition(); }
private String getPortTypesOnly(Set<QName> names, Definition definition) { try { Definition tempDefinition = WSDLComparisonUtils.getWSDLDefinition(); for (QName name : names) { tempDefinition.addPortType(definition.getPortType(name)); } WSDLComparisonUtils.copyNamespaces(definition, tempDefinition); return WSDLComparisonUtils.getWSDLWithoutDeclaration(tempDefinition); } catch (WSDLException e) { log.error(e); } return null; } }
private String getOperationOnly(List<Operation> operations, Definition definition) { try { Definition tempDefinition = WSDLComparisonUtils.getWSDLDefinition(); PortType portType = tempDefinition.createPortType(); portType.setUndefined(false); portType.setQName(new QName(definition.getTargetNamespace(), "temp")); for (Operation operation : operations) { portType.addOperation(operation); } tempDefinition.addPortType(portType); WSDLComparisonUtils.copyNamespaces(definition, tempDefinition); String content = WSDLComparisonUtils.getWSDLWithoutDeclaration(tempDefinition); content = content.substring(content.indexOf(">") + 2); return content.replace("</wsdl:portType>", ""); } catch (WSDLException e) { log.error(e); } return null; }
/** * Creates a single {@link PortType}, and calls {@link #populatePortType(Definition, PortType)} with it. * * @param definition the WSDL4J <code>Definition</code> * @throws WSDLException in case of errors */ public void addPortTypes(Definition definition) throws WSDLException { Assert.notNull(getPortTypeName(), "'portTypeName' is required"); PortType portType = definition.createPortType(); populatePortType(definition, portType); createOperations(definition, portType); portType.setUndefined(false); definition.addPortType(portType); }
/** * Creates a single {@link PortType}, and calls {@link #populatePortType(Definition, PortType)} with it. * * @param definition the WSDL4J {@code Definition} * @throws WSDLException in case of errors */ @Override public void addPortTypes(Definition definition) throws WSDLException { Assert.notNull(getPortTypeName(), "'portTypeName' is required"); PortType portType = definition.createPortType(); populatePortType(definition, portType); createOperations(definition, portType); portType.setUndefined(false); definition.addPortType(portType); }
/** * Creates a single {@link PortType}, and calls {@link #populatePortType(Definition, PortType)} with it. * * @param definition the WSDL4J {@code Definition} * @throws WSDLException in case of errors */ @Override public void addPortTypes(Definition definition) throws WSDLException { Assert.notNull(getPortTypeName(), "'portTypeName' is required"); PortType portType = definition.createPortType(); populatePortType(definition, portType); createOperations(definition, portType); portType.setUndefined(false); definition.addPortType(portType); }
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]); } } }
/** * Creates a single {@link PortType}, and calls {@link #populatePortType(Definition, PortType)} with it. * * @param definition the WSDL4J {@code Definition} * @throws WSDLException in case of errors */ @Override public void addPortTypes(Definition definition) throws WSDLException { Assert.notNull(getPortTypeName(), "'portTypeName' is required"); PortType portType = definition.createPortType(); populatePortType(definition, portType); createOperations(definition, portType); portType.setUndefined(false); definition.addPortType(portType); }
protected PortType buildPortType(InterfaceInfo intf, final Definition def) { PortType portType = null; try { portType = intf.getProperty(WSDLServiceBuilder.WSDL_PORTTYPE, PortType.class); } catch (ClassCastException e) { // do nothing } if (portType == null) { portType = def.createPortType(); portType.setQName(intf.getName()); addDocumentation(portType, intf.getDocumentation()); addNamespace(intf.getName().getNamespaceURI(), def); addExtensibilityElements(def, portType, getWSDL11Extensors(intf)); addExtensibilityAttributes(def, portType, intf.getExtensionAttributes()); portType.setUndefined(false); buildPortTypeOperation(portType, intf.getOperations(), def); } def.addPortType(portType); return portType; }
protected PortType buildPortType(InterfaceInfo intf, final Definition def) { PortType portType = null; try { portType = intf.getProperty(WSDLServiceBuilder.WSDL_PORTTYPE, PortType.class); } catch (ClassCastException e) { // do nothing } if (portType == null) { portType = def.createPortType(); portType.setQName(intf.getName()); addDocumentation(portType, intf.getDocumentation()); addNamespace(intf.getName().getNamespaceURI(), def); addExtensibilityElements(def, portType, getWSDL11Extensors(intf)); addExtensibilityAttributes(def, portType, intf.getExtensionAttributes()); portType.setUndefined(false); buildPortTypeOperation(portType, intf.getOperations(), def); } def.addPortType(portType); return portType; }
protected PortType buildPortType(InterfaceInfo intf, final Definition def) { PortType portType = null; try { portType = intf.getProperty(WSDLServiceBuilder.WSDL_PORTTYPE, PortType.class); } catch (ClassCastException e) { // do nothing } if (portType == null) { portType = def.createPortType(); portType.setQName(intf.getName()); addDocumentation(portType, intf.getDocumentation()); addNamespace(intf.getName().getNamespaceURI(), def); addExtensibilityElements(def, portType, getWSDL11Extensors(intf)); addExtensibilityAttributes(def, portType, intf.getExtensionAttributes()); portType.setUndefined(false); buildPortTypeOperation(portType, intf.getOperations(), def); } def.addPortType(portType); return portType; }