public void accept(WSDLDocumentVisitor visitor) throws Exception { visitor.preVisit(this); for (Iterator iter = _ports.iterator(); iter.hasNext();) { ((Port) iter.next()).accept(visitor); } _helper.accept(visitor); visitor.postVisit(this); }
public void validateThis() { if (getName() == null) { failValidation("validation.missingRequiredAttribute", "name"); } if (_binding == null) { failValidation("validation.missingRequiredAttribute", "binding"); } }
public QName[] getAllPortQNames() { ArrayList portQNames = new ArrayList(); for (Iterator iter = getDefinitions().services(); iter.hasNext();) { Service next = (Service) iter.next(); //Iterator ports = next.ports(); for (Iterator piter = next.ports(); piter.hasNext();) { // If it's a relative import Port pnext = (Port) piter.next(); String targetNamespace = pnext.getDefining().getTargetNamespaceURI(); String localName = pnext.getName(); QName portQName = new QName(targetNamespace, localName); portQNames.add(portQName); } } return (QName[]) portQNames.toArray(new QName[portQNames.size()]); }
public Binding resolveBinding(AbstractDocument document) { try{ return (Binding) document.find(Kinds.BINDING, _binding); } catch (NoSuchEntityException e) { errorReceiver.error(getLocator(), WsdlMessages.ENTITY_NOT_FOUND_BINDING(_binding, new QName(getNamespaceURI(), getName()))); throw new AbortException(); } }
context.registerNamespaces(e); Port port = new Port(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); port.setName(name); port.setBinding(context.translateQualifiedName(context.getLocation(e), bindingAttr)); if (port.getDocumentation() == null) { port.setDocumentation(getDocumentationFor(e2));
setDocumentationIfPresent(port, wsdlPort.getDocumentation()); if (soapAddress == null) { if(options.isExtensionMode()){ warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_NO_SOAP_ADDRESS(wsdlPort.getName())); }else{ warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_IGNORING_NON_SOAP_PORT_NO_ADDRESS(wsdlPort.getName())); return false; Binding binding = wsdlPort.resolveBinding(document); QName bindingName = getQNameOf(binding); PortType portType = binding.resolvePortType(document); warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_IGNORING_NON_SOAP_PORT(wsdlPort.getName())); return false; }else{ warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_NON_SOAP_PORT(wsdlPort.getName())); warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_PORT_SOAP_BINDING_12(wsdlPort.getName())); } else { warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_IGNORING_SOAP_BINDING_12(wsdlPort.getName())); return false; warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_IGNORING_SOAP_BINDING_NON_HTTP_TRANSPORT(wsdlPort.getName())); return false; warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_PORT_SOAP_BINDING_MIXED_STYLE(wsdlPort.getName())); } else {
private void build(Port port) { if(wsdlModeler.isProvider(port)) return; Binding binding = port.resolveBinding(wsdlDocument);
warning(info.port, ModelerMessages.WSDLMODELER_NON_UNIQUE_BODY_WARNING(info.port.getName(), info.operation.getName(), thatOp.getName(), body)); }else{ error(info.port, ModelerMessages.WSDLMODELER_NON_UNIQUE_BODY_ERROR(info.port.getName(), info.operation.getName(), thatOp.getName(), body)); Binding binding = info.port.resolveBinding(document); PortType portType = binding.resolvePortType(document); if (isAsync(portType, info.portTypeOperation)) {
public QName getElementName() { return getWSDLElementName(); }
public String getNameValue() { return getName(); }
public String getNamespaceURI() { return getDefining().getTargetNamespaceURI(); }
context.registerNamespaces(e); Port port = new Port(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); port.setName(name); port.setBinding(context.translateQualifiedName(context.getLocation(e), bindingAttr)); if (port.getDocumentation() == null) { port.setDocumentation(getDocumentationFor(e2));
public Binding resolveBinding(AbstractDocument document) { try{ return (Binding) document.find(Kinds.BINDING, _binding); } catch (NoSuchEntityException e) { errorReceiver.error(getLocator(), WsdlMessages.ENTITY_NOT_FOUND_BINDING(_binding, new QName(getNamespaceURI(), getName()))); throw new AbortException(); } }
setDocumentationIfPresent(port, wsdlPort.getDocumentation()); if (soapAddress == null) { if(options.isExtensionMode()){ warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_NO_SOAP_ADDRESS(wsdlPort.getName())); }else{ warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_IGNORING_NON_SOAP_PORT_NO_ADDRESS(wsdlPort.getName())); return false; Binding binding = wsdlPort.resolveBinding(document); QName bindingName = getQNameOf(binding); PortType portType = binding.resolvePortType(document); warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_IGNORING_NON_SOAP_PORT(wsdlPort.getName())); return false; }else{ warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_NON_SOAP_PORT(wsdlPort.getName())); warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_PORT_SOAP_BINDING_12(wsdlPort.getName())); } else { warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_IGNORING_SOAP_BINDING_12(wsdlPort.getName())); return false; warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_IGNORING_SOAP_BINDING_NON_HTTP_TRANSPORT(wsdlPort.getName())); return false; warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_PORT_SOAP_BINDING_MIXED_STYLE(wsdlPort.getName())); } else {
private void build(Port port) { if(wsdlModeler.isProvider(port)) return; Binding binding = port.resolveBinding(wsdlDocument);
warning(info.port, ModelerMessages.WSDLMODELER_NON_UNIQUE_BODY_WARNING(info.port.getName(), info.operation.getName(), thatOp.getName(), body)); }else{ error(info.port, ModelerMessages.WSDLMODELER_NON_UNIQUE_BODY_ERROR(info.port.getName(), info.operation.getName(), thatOp.getName(), body)); Binding binding = info.port.resolveBinding(document); PortType portType = binding.resolvePortType(document); if (isAsync(portType, info.portTypeOperation)) {
public QName getElementName() { return getWSDLElementName(); }
public String getNameValue() { return getName(); }
public String getNamespaceURI() { return getDefining().getTargetNamespaceURI(); }
context.registerNamespaces(e); Port port = new Port(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); port.setName(name); port.setBinding(context.translateQualifiedName(context.getLocation(e), bindingAttr)); if (port.getDocumentation() == null) { port.setDocumentation(getDocumentationFor(e2));