portType.setUndefined(false);
/** * <!-- begin-user-doc --> * Create a new port type. * @return the newly created port type * <!-- end-user-doc --> * @generated NOT */ public javax.wsdl.PortType createPortType() { javax.wsdl.PortType portType = WSDLFactoryImpl.eINSTANCE.createPortType(); portType.setUndefined(true); return 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 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); }
portType.setUndefined(false);
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; }
portType = def.createPortType(); portType.setUndefined(false); portType.setQName(portTypeQName);
portType = def.createPortType(); portType.setUndefined(false); portType.setQName(portTypeQName);
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; }
public void generate() { PortType portType = definition.createPortType(); portType.setQName(new QName(wmodel.getTargetNameSpace(), wmodel.getPortTypeName())); portType.setUndefined(false); for (JavaMethod method : wmodel.getJavaMethods()) { Operation operation = definition.createOperation(); operation.setName(method.getName()); operation.setUndefined(false); Message inputMessage = null; inputMessage = definition.createMessage(); inputMessage.setQName(new QName(wmodel.getTargetNameSpace(), method.getName())); processInputMessage(operation, method, inputMessage); Message outputMessage = null; if (!method.isOneWay()) { outputMessage = definition.createMessage(); outputMessage.setQName(new QName(wmodel.getTargetNameSpace(), method.getName() + "Response")); processOutputMessage(operation, method, outputMessage); } generateFault(method, operation); portType.addOperation(operation); 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; }
portType.setUndefined(false);
portType.setUndefined(false);
portType.setUndefined(false);
PortType flatPort = flat.createPortType(); flatPort.setQName(defPort.getQName()); flatPort.setUndefined(false);
PortType flatPort = flat.createPortType(); flatPort.setQName(defPort.getQName()); flatPort.setUndefined(false);
portType.setQName(new QName(tns, portTypeName)); definition.addPortType(portType); portType.setUndefined(false);