_port = getSoapPort( _service.getPorts().values() ); } else { _port = _service.getPort( portName );
printPorts(service.getPorts(), def, pw);
Map<String, Port> wsdlports = CastUtils.cast(serv.getPorts()); for (Port port : wsdlports.values()) { QName name = new QName(serviceName.getNamespaceURI(), port.getName());
public Map getWSDLPorts() { Service wsdlService = getWSDLService(); if (wsdlService != null) { return wsdlService.getPorts(); } else { return null; } }
private Map buildPortMap() { HashMap ports = new HashMap(); if (definition != null) { Collection services = definition.getServices().values(); for (Iterator iterator = services.iterator(); iterator.hasNext();) { Service service = (Service) iterator.next(); ports.putAll(service.getPorts()); } } return ports; }
private void processPorts(Definition srcWsdl, WSDLService destService, Service srcService) throws WSDLException { Iterator it = srcService.getPorts().values().iterator(); while (it.hasNext()) { Port srcPort = (Port)it.next(); processPort(srcWsdl, destService, srcPort); } }
public Map getWSDLPorts() { Service wsdlService = getWSDLService(); if (wsdlService != null) { return wsdlService.getPorts(); } else { return null; } }
public static String getPackageNameForBindingImpl(Definition definition) { Port port = null; if (definition != null) { Service service = (Service)definition.getServices().values().iterator().next(); port = (Port)service.getPorts().values().iterator().next(); } return getPackageNameForBindingImpl(port); }
private boolean isPortExisted() { ports = CastUtils.cast(service.getPorts()); if (ports == null) { return false; } for (Map.Entry<String, Port> entry : ports.entrySet()) { if (entry.getKey().equals(env.get(ToolConstants.CFG_PORT))) { port = entry.getValue(); break; } } return (port == null) ? false : true; }
private boolean isPortExisted() { ports = CastUtils.cast(service.getPorts()); if (ports == null) { return false; } for (Map.Entry<String, Port> entry : ports.entrySet()) { if (entry.getKey().equals(env.get(ToolConstants.CFG_PORT))) { port = entry.getValue(); break; } } return (port == null) ? false : true; }
private boolean isPortExisted() { ports = CastUtils.cast(service.getPorts()); if (ports == null) { return false; } for (Map.Entry<String, Port> entry : ports.entrySet()) { if (entry.getKey().equals(env.get(ToolConstants.CFG_PORT))) { port = entry.getValue(); break; } } return (port == null) ? false : true; }
private boolean isPortExisted() { ports = CastUtils.cast(service.getPorts()); if (ports == null) { return false; } for (Map.Entry<String, Port> entry : ports.entrySet()) { if (entry.getKey().equals(env.get(ToolConstants.CFG_PORT))) { port = entry.getValue(); break; } } return (port == null) ? false : true; }
protected void visit(Service service) { if (service.getPorts().values().size() != 1) { context.addFailure(new ValidationFailure("A lightweight RPC/Encoded service must contain only one Port")); } } }
public static String getPackageNameForBindingImpl(Definition definition, Map ns2pkgMap) { if (definition != null && ns2pkgMap != null) { Service service = (Service) definition.getServices().values().iterator().next(); Port port = (Port) service.getPorts().values().iterator().next(); return getPackageNameForBindingImpl(port, ns2pkgMap); } return getPackageNameForBindingImpl(definition); }
protected void visit(Service service) { if (service.getPorts().values().size() != 1) { context.addFailure(new ValidationFailure("A lightweight RPC/Encoded service must contain only one Port")); } } }
protected void visit(final Service service) { if (service.getPorts().values().size() != 1) { context.addFailure(new ValidationFailure("A lightweight RPC/Encoded service must contain only one Port")); } } }
protected void visit(Service service) { if (service.getPorts().values().size() != 1) { context.addFailure(new ValidationFailure("A lightweight RPC/Encoded service must contain only one Port")); } } }
@SuppressWarnings("unchecked") private void processServices(Definition def) { Map<QName, Service> services = def.getServices(); log.info("Services: "); for (Service svc : services.values()) { String svcName = svc.getQName().getLocalPart(); log.info("\t{}", svcName); Map<QName, Port> ports = svc.getPorts(); for (Port port : ports.values()) { log.info("\tPort: {}", port.getName()); processBinding(def, port.getBinding()); } } }
public static QName getServiceName(Binding binding, Definition wsdlDef) { LOG.log(Level.FINE, "Getting service name for an object reference"); Collection<Service> services = CastUtils.cast(wsdlDef.getServices().values()); for (Service serv : services) { Collection<Port> ports = CastUtils.cast(serv.getPorts().values()); for (Port pt : ports) { if (pt.getBinding().equals(binding)) { return serv.getQName(); } } } return null; }
public static String getEndpointName(Binding binding, Definition wsdlDef) { LOG.log(Level.FINE, "Getting endpoint name for an object reference"); Collection<Service> services = CastUtils.cast(wsdlDef.getServices().values()); for (Service serv : services) { Collection<Port> ports = CastUtils.cast(serv.getPorts().values()); for (Port pt : ports) { if (pt.getBinding().equals(binding)) { return pt.getName(); } } } return null; }