/** * Get the PortType name for the service which has been specified by serviceName and portName at construction time. * * @return QName of the PortType. */ public QName getPortTypeQName() { Binding b = _port.getBinding(); return b.getPortType().getQName(); }
/** * Add a portType to this WSDL description. * * @param portType the portType to be added */ public void addPortType(PortType portType) { portTypes.put(portType.getQName(), portType); }
QName name = portType.getQName();
portType.getQName(), def, pw);
/** * Construct a PortTypeEntry from a WSDL4J PortType object and a HashMap of Parameters objects, * keyed off of the operation name. * * @param portType */ public PortTypeEntry(PortType portType) { super(portType.getQName()); this.portType = portType; } // ctor
public void setPortType(PortType portType) { this.portType = portType; if (portType != null) { this.name = portType.getQName(); } }
public void setPortType(PortType portType) { this.portType = portType; if (portType != null) { this.name = portType.getQName(); } }
/** * Construct a PortTypeEntry from a WSDL4J PortType object and a HashMap of Parameters objects, * keyed off of the operation name. * * @param portType */ public PortTypeEntry(PortType portType) { super(portType.getQName()); this.portType = portType; } // ctor
Definition def = wsdlManager.getDefinition(wsdlDocumentLocation); interfaceName = def.getService(serviceName).getPort(portName.getLocalPart()).getBinding() .getPortType().getQName(); } catch (Exception e) {
private Binding findBinding(PortType intf) { Object[] bindings = rootDefinition.getBindings().values().toArray(); for (int i = 0; i < bindings.length; i++) { Binding binding = (Binding) bindings[i]; if (binding.getPortType().getQName().equals(intf.getQName())) { return binding; } } throw new RuntimeException("[InterfaceVisitor] Couldn't find binding for porttype " + intf.getQName()); }
public PartnerRoleChannel createPartnerRoleChannel(QName pid, PortType portType, Endpoint endpoint) { if (__log.isDebugEnabled()) { __log.debug("Create PartnerRole channel : " + pid + " - " + portType.getQName() + " - "+ endpoint.serviceName); } QName processName = getProcessName(pid); return new TuscanyPRC(processName, pid, portType, endpoint); }
private Map<QName, Operation> getOperations(PortType portType) { Map<QName, Operation> operations = new HashMap<>(); Collection<Operation> pops = CastUtils.cast(portType.getOperations()); for (Operation op : pops) { operations.put(new QName(portType.getQName().getNamespaceURI(), op.getName()), op); } return operations; }
public void visit(Binding binding, Object parent, WSDLTraversalContext ctx) { if (binding != null) { PortType pType = binding.getPortType(); if (pType != null) { checkNamespace(pType.getQName(), ctx); } } }
private void processBinding(Definition def, Binding binding) { QName qname = binding.getPortType().getQName(); log.info("\tBinding: {}", qname.getLocalPart()); processPortType(def, binding, binding.getPortType()); }
public void invokePartner(PartnerRoleMessageExchange mex) throws ContextException { QName calledPT = mex.getPortType().getQName(); if (calledPT.equals(probePT)) { invokeProbeService(mex); } if (calledPT.equals(faultPT)) { invokeFaultService(mex); } }
public void visit(PortType type, Object parent, WSDLTraversalContext ctx) { if (type != null && !containsLegalClaim(type.getDocumentationElement())) errors.add(WSDL_PORTTYPE, type.getQName()); }
public ReferenceEndpointDefinition resolveReferenceEndpoint(WsdlElement wsdlElement, Definition wsdl) throws EndpointResolutionException { QName serviceName = wsdlElement.getServiceName(); QName portName = wsdlElement.getPortName(); Port port = resolveAndValidatePort(serviceName, portName, wsdl); URL url = getAddress(port); QName portTypeName = port.getBinding().getPortType().getQName(); String serializedWsdl = serializeWsdl(wsdl); return new ReferenceEndpointDefinition(serviceName, true, portName, portTypeName, url, serializedWsdl); }