@Test public void importedWSDLs() throws Exception { Assert.assertNotNull(reader.readWSDL(ORDER_WSDL)); Set<ServiceOperation> ops = reader.readWSDL(ORDER_WSDL, "OrderService"); Assert.assertEquals(1, ops.size()); }
public HashSet<ServiceOperation> readWSDL(final String wsdlURI, final String portName) throws WSDLReaderException { Element defEl = readWSDL(wsdlURI); Map<String, String> namespaces = parseNamespaces(defEl); Element portType = getPortType(defEl, portName, namespaces); if (portType == null) { throw WSDLExtensionsMessages.MESSAGES.unableFindPort(portName); } String style = getStyle(defEl, portType, namespaces); _documentStyle = style.equals(DOCUMENT) ? true : false; Map<QName, QName> parts = getParts(defEl, portType, namespaces); HashSet<ServiceOperation> ops = new HashSet<ServiceOperation>(); List<Element> operations = getOperations(portType); int size = operations.size(); for (int i = 0; i < size; i++) { ops.add(createServiceOperation(operations.get(i), parts, namespaces)); } return ops; }
WSDLReader { public HashSet<ServiceOperation> readWSDL(final String wsdlURI, final String portName) throws WSDLReaderException { Element defEl = readWSDL(wsdlURI); Map<String, String> namespaces = parseNamespaces(defEl); Element portType = getPortType(defEl, portName, namespaces); if (portType == null) { throw WSDLExtensionsMessages.MESSAGES.unableFindPort(portName); } String style = getStyle(defEl, portType, namespaces); _documentStyle = style.equals(DOCUMENT) ? true : false; Map<QName, QName> parts = getParts(defEl, portType, namespaces); HashSet<ServiceOperation> ops = new HashSet<ServiceOperation>(); List<Element> operations = getOperations(portType); int size = operations.size(); for (int i = 0; i < size; i++) { ops.add(createServiceOperation(operations.get(i), parts, namespaces)); } return ops; } }
WSDLReader { public HashSet<ServiceOperation> readWSDL(final String wsdlURI, final String portName) throws WSDLReaderException { Element defEl = readWSDL(wsdlURI); Map<String, String> namespaces = parseNamespaces(defEl); Element portType = getPortType(defEl, portName, namespaces); if (portType == null) { throw WSDLExtensionsMessages.MESSAGES.unableFindPort(portName); } String style = getStyle(defEl, portType, namespaces); _documentStyle = style.equals(DOCUMENT) ? true : false; Map<QName, QName> parts = getParts(defEl, portType, namespaces); HashSet<ServiceOperation> ops = new HashSet<ServiceOperation>(); List<Element> operations = getOperations(portType); int size = operations.size(); for (int i = 0; i < size; i++) { ops.add(createServiceOperation(operations.get(i), parts, namespaces)); } return ops; }  }
WSDLReader { public HashSet<ServiceOperation> readWSDL(final String wsdlURI, final String portName) throws WSDLReaderException { Element defEl = readWSDL(wsdlURI); Map<String, String> namespaces = parseNamespaces(defEl); Element portType = getPortType(defEl, portName, namespaces); if (portType == null) { throw WSDLExtensionsMessages.MESSAGES.unableFindPort(portName); } String style = getStyle(defEl, portType, namespaces); _documentStyle = style.equals(DOCUMENT) ? true : false; Map<QName, QName> parts = getParts(defEl, portType, namespaces); HashSet<ServiceOperation> ops = new HashSet<ServiceOperation>(); List<Element> operations = getOperations(portType); int size = operations.size(); for (int i = 0; i < size; i++) { ops.add(createServiceOperation(operations.get(i), parts, namespaces)); } return ops; }  HashSet<ServiceOperation> readWSDL(final String wsdlURI, final String portName); Element readWSDL(final String wsdlURI); }
WSDLReader { public HashSet<ServiceOperation> readWSDL(final String wsdlURI, final String portName) throws WSDLReaderException { Element defEl = readWSDL(wsdlURI); Map<String, String> namespaces = parseNamespaces(defEl); Element portType = getPortType(defEl, portName, namespaces); if (portType == null) { throw WSDLExtensionsMessages.MESSAGES.unableFindPort(portName); } String style = getStyle(defEl, portType, namespaces); _documentStyle = style.equals(DOCUMENT) ? true : false; Map<QName, QName> parts = getParts(defEl, portType, namespaces); HashSet<ServiceOperation> ops = new HashSet<ServiceOperation>(); List<Element> operations = getOperations(portType); int size = operations.size(); for (int i = 0; i < size; i++) { ops.add(createServiceOperation(operations.get(i), parts, namespaces)); } return ops; }  HashSet<ServiceOperation> readWSDL(final String wsdlURI, final String portName); Element readWSDL(final String wsdlURI);  }