[Registry-dev] [jira] Created: (REGISTRY-452) WSDL dependencies not added when import the WSDL from API level.

Krishantha Samaraweera (JIRA) jira at wso2.org
Tue Jul 8 01:02:36 PDT 2008


WSDL dependencies not added when import the WSDL from API level.
----------------------------------------------------------------

                 Key: REGISTRY-452
                 URL: https://wso2.org/jira/browse/REGISTRY-452
             Project: WSO2 Registry
          Issue Type: Bug
    Affects Versions: SNAPSHOT
         Environment: winxp,JDK 1.5,FF2
            Reporter: Krishantha Samaraweera
            Assignee: Deepal Jayasinghe


Use the following code to import a WSDL with schema imports. Then go to registry UI and check the dependencies section.

public void testImportWsdlTime() throws RegistryException{

        UserRegistry adminRegistry = registry.
        getUserRegistry(RegistryConstants.ADMIN_USER, RegistryConstants.ADMIN_PASSWORD);
        long totalTime = 0;
        String url = "http://131.107.72.15/SoapWsdl_ComplexDataTypes_XmlFormatter_Service_Indigo/ComplexDataTypesDocLitB.svc?wsdl";

        for (int i=1;i<=maxFileToputResource;i++){
            Resource r1 = adminRegistry.newResource();
            r1.setDescription("WSDL imported from url");
            r1.setMediaType("application/wsdl+xml");
            String path_1= "/c"+i;
            String path_2= path_1 + "/b" +i;
            String path= path_2 + "/ComplexDataTypesDocLitB.wsdl";

            try {
                long startTime = System.currentTimeMillis();
                adminRegistry.importResource(path, url, r1);
                long stopTime = System.currentTimeMillis();
                long runTime = stopTime - startTime;
                totalTime += runTime;
            } catch (RegistryException e) {
                fail("Couldn't import content to path:" + path);
            }
        }
        System.out.println("Average time to import a wsdl with dependencies: " + totalTime/maxFileToputResource+ " ms");
    }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the Registry-dev mailing list