FileDocCategorySizeDatePackage
CPWSImplServiceTestCase.javaAPI DocApache Axis 1.41643Sat Apr 22 18:57:28 BST 2006test.wsdl.xsd

CPWSImplServiceTestCase

public class CPWSImplServiceTestCase extends TestCase
CPWSImplServiceTestCase.java This file was auto-generated from WSDL by the Apache Axis 1.2alpha Dec 09, 2003 (01:27:53 EST) WSDL2Java emitter.

Fields Summary
Constructors Summary
public CPWSImplServiceTestCase(String name)

        super(name);
    
Methods Summary
public voidtestCPWebServicesWSDL()
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());