private PortTypeImpl addPortTypes(Definition def, DOMImplementation dImpl, PortTypeType portType, QName serviceQName) { // create port type PortTypeImpl wsdlPortType = (PortTypeImpl) def.createPortType(); wsdlPortType.setQName(serviceQName); wsdlPortType.setUndefined(false); // create documentation for this port type Document doc = dImpl.createDocument(WSDL_NAMEPSPACE, WSDL_DOCUMENTATION, null); Element documentation = doc.getDocumentElement(); documentation.appendChild(doc.createTextNode(portType.getPortDescription())); wsdlPortType.setDocumentationElement(documentation); return wsdlPortType; }
private PortTypeImpl addPortTypes(Definition def, DOMImplementation dImpl, PortTypeType portType, QName serviceQName) { // create port type PortTypeImpl wsdlPortType = (PortTypeImpl) def.createPortType(); wsdlPortType.setQName(serviceQName); wsdlPortType.setUndefined(false); // create documentation for this port type Document doc = dImpl.createDocument(WSDL_NAMEPSPACE, WSDL_DOCUMENTATION, null); Element documentation = doc.getDocumentElement(); documentation.appendChild(doc.createTextNode(portType.getPortDescription())); wsdlPortType.setDocumentationElement(documentation); return wsdlPortType; }