Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-95

Provide access to wsdl contained/imported schema

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Critical Critical
    • jbossws-1.0EA
    • None
    • tools-jaxrpc
    • None

      Please have a look at SchemaLocationRegistryTestCase

      public void testIncludedSchema () throws Exception

      { URL wsdlLocation = new File("resources/jaxrpc/WEB-INF/wsdl/TestService.wsdl").toURL(); WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance(); WSDLDefinitions wsdlDefinitions = factory.parse(wsdlLocation); WSDLTypes wsdlTypes = wsdlDefinitions.getTypes(); URL xsdURL = wsdlTypes.getSchemaLocation("http://org.jboss.ws/jaxrpc/types"); Element was = DOM2Utils.parse(xsdURL.openStream()); String expStr = "<schema targetNamespace='http://org.jboss.ws/jaxrpc/types' xmlns:tns='http://org.jboss.ws/jaxrpc/types' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' xmlns='http://www.w3.org/2001/XMLSchema'>" + " <complexType name='SimpleUserType'>" + " <sequence>" + " <element name='a' type='int'/>" + " <element name='b' type='int'/>" + " </sequence>" + " </complexType>" + "</schema>"; Element exp = DOM2Utils.parse(expStr); assertEquals(exp, was); }

            anil.saldhana Anil Saldanha (Inactive)
            tdiesler@redhat.com Thomas Diesler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: