Test case for Bug 25161
Axis 1.2 alpha WSDL xsd types problem prevent .Net integration
String url = new test.wsdl.xsd.CPWSImplServiceLocator().getCPWebServicesAddress();
Parser wsdlParser = new Parser();
System.out.println("Reading WSDL document from '" + url + "?WSDL'");
wsdlParser.run(url + "?WSDL");
SymbolTable symbolTable = wsdlParser.getSymbolTable();
Vector v = symbolTable.getSymbols(new QName("http://datatypes.cs.amdocs.com", "CSText"));
DefinedType type = (DefinedType) v.get(0);
assertNotNull(type);
Vector v2 = SchemaUtils.getContainedElementDeclarations(
type.getNode(), symbolTable);
ElementDecl element = (ElementDecl) v2.get(0);
assertNotNull(element);
assertEquals(Constants.XSD_STRING, element.getType().getQName());