public WSDL20ToAxisServiceBuilder(Description descriptionComp, QName wsdlServiceName, String interfaceName) { DescriptionElement descriptionElement = descriptionComp.toElement(); savedTargetNamespace = descriptionElement.getTargetNamespace().toString(); namespacemap = descriptionElement.getDeclaredNamespaces(); this.description = descriptionElement.toComponent(); this.serviceName = null; if (wsdlServiceName != null) { serviceName = wsdlServiceName; } this.interfaceName = interfaceName; this.axisService = new AxisService(); setPolicyRegistryFromService(axisService); }
public WSDL20ToAxisServiceBuilder(String wsdlUri, String name, String interfaceName) throws WSDLException { String fullPath = wsdlUri; if (!wsdlUri.startsWith("http://")) { File file = new File(wsdlUri); fullPath = file.getAbsolutePath(); } setBaseUri(fullPath); Description description; try { description = readInTheWSDLFile(fullPath); } catch (AxisFault axisFault) { throw new WSDLException("ERROR", "Exception occured while reading WSDL 2.0 doc", axisFault); } DescriptionElement descriptionElement = description.toElement(); savedTargetNamespace = descriptionElement.getTargetNamespace() .toString(); namespacemap = descriptionElement.getDeclaredNamespaces(); this.description = description; this.serviceName = null; if (name != null) { serviceName = new QName(descriptionElement.getTargetNamespace().toString(), name); } this.interfaceName = interfaceName; this.axisService = new AxisService(); setPolicyRegistryFromService(axisService); }
public WSDL20ToAxisServiceBuilder(String wsdlUri, String name, String interfaceName) throws WSDLException { String fullPath = wsdlUri; if (!wsdlUri.startsWith("http://")) { File file = new File(wsdlUri); fullPath = file.getAbsolutePath(); } setBaseUri(fullPath); Description description; try { description = readInTheWSDLFile(fullPath); } catch (AxisFault axisFault) { throw new WSDLException("ERROR", "Exception occured while reading WSDL 2.0 doc", axisFault); } DescriptionElement descriptionElement = description.toElement(); savedTargetNamespace = descriptionElement.getTargetNamespace() .toString(); namespacemap = descriptionElement.getDeclaredNamespaces(); this.description = description; this.serviceName = null; if (name != null) { serviceName = new QName(descriptionElement.getTargetNamespace().toString(), name); } this.interfaceName = interfaceName; this.axisService = new AxisService(); setPolicyRegistryFromService(axisService); }
public WSDL20ToAxisServiceBuilder(Description descriptionComp, QName wsdlServiceName, String interfaceName) { DescriptionElement descriptionElement = descriptionComp.toElement(); savedTargetNamespace = descriptionElement.getTargetNamespace().toString(); namespacemap = descriptionElement.getDeclaredNamespaces(); this.description = descriptionElement.toComponent(); this.serviceName = null; if (wsdlServiceName != null) { serviceName = wsdlServiceName; } this.interfaceName = interfaceName; this.axisService = new AxisService(); setPolicyRegistryFromService(axisService); }
/** * recursively drills down to get namespace pairs in nested imported elements * * @param descriptionElement - a description element from where import elements * and types can be found */ private void createNamespaceMap(DescriptionElement descriptionElement) { ImportElement[] importElements = descriptionElement.getImportElements(); for (int i = 0; i < importElements.length; i++) { DescriptionElement descElem = importElements[i].getDescriptionElement(); NamespaceDeclaration[] namespaceDeclarations = descElem.getDeclaredNamespaces(); for (int j = 0; j < namespaceDeclarations.length; j++) { NamespaceDeclaration importedNamespaceDeclaration = namespaceDeclarations[j]; if (!stringBasedNamespaceMap.containsKey(importedNamespaceDeclaration.getPrefix())) { stringBasedNamespaceMap.put(importedNamespaceDeclaration.getPrefix(), importedNamespaceDeclaration.getNamespaceURI().toString()); } } createNamespaceMap(descElem); // recursively drill down } }
/** * recursively drills down to get namespace pairs in nested imported elements * * @param descriptionElement - a description element from where import elements * and types can be found */ private void createNamespaceMap(DescriptionElement descriptionElement) { ImportElement[] importElements = descriptionElement.getImportElements(); for (int i = 0; i < importElements.length; i++) { DescriptionElement descElem = importElements[i].getDescriptionElement(); NamespaceDeclaration[] namespaceDeclarations = descElem.getDeclaredNamespaces(); for (int j = 0; j < namespaceDeclarations.length; j++) { NamespaceDeclaration importedNamespaceDeclaration = namespaceDeclarations[j]; if (!stringBasedNamespaceMap.containsKey(importedNamespaceDeclaration.getPrefix())) { stringBasedNamespaceMap.put(importedNamespaceDeclaration.getPrefix(), importedNamespaceDeclaration.getNamespaceURI().toString()); } } createNamespaceMap(descElem); // recursively drill down } }
namespacemap = descriptionElement.getDeclaredNamespaces(); this.description = description;
namespacemap = descriptionElement.getDeclaredNamespaces(); this.description = description;
NamespaceDeclaration[] namespaces = desEle.getDeclaredNamespaces(); printExtensibilityAttributes(desEle.getExtensionAttributes(), desEle, pw); printNamespaceDeclarations(namespaces, pw);
NamespaceDeclaration[] namespaces = desEle.getDeclaredNamespaces(); printExtensibilityAttributes(desEle.getExtensionAttributes(), desEle, pw); printNamespaceDeclarations(namespaces, pw);
NamespaceDeclaration[] namespaces = desEle.getDeclaredNamespaces(); printExtensibilityAttributes(desEle.getExtensionAttributes(), desEle, pw); printNamespaceDeclarations(namespaces, pw);
Iterator it = Arrays.asList(desc.getDeclaredNamespaces()).iterator(); while(it.hasNext()) { NamespaceDeclaration d = (NamespaceDeclaration)it.next();