Examples of DefinitionsDocument


Examples of org.apache.geronimo.xbeans.wsdl.DefinitionsDocument

        }
        throw new DeploymentException("No element of class " + clazz.getName() + " found");
    }

    public String movePortLocation(String portComponentName, String servletLocation) throws DeploymentException {
        DefinitionsDocument doc = (DefinitionsDocument) wsdlMap.get(uris.get(0));
        TDefinitions definitions = doc.getDefinitions();
        TService[] services = definitions.getServiceArray();
        for (int i = 0; i < services.length; i++) {
            TService service = services[i];
            TPort[] ports = service.getPortArray();
            for (int j = 0; j < ports.length; j++) {
View Full Code Here

Examples of org.apache.geronimo.xbeans.wsdl.DefinitionsDocument

            if(entry == null){
                throw new RuntimeException("The webservices.xml file points to a non-existant WSDL file "+wsdlURI.toString());
            }
            try {
                wsdlInputStream = moduleFile.getInputStream(entry);
                DefinitionsDocument definition = DefinitionsDocument.Factory.parse(wsdlInputStream);
                wsdlMap.put(wsdlURI, definition);
                wsdlInputStream.close();
                wsdlInputStream = moduleFile.getInputStream(entry);
                streams.add(wsdlInputStream);
            } catch (Exception e) {
View Full Code Here

Examples of org.apache.geronimo.xbeans.wsdl.DefinitionsDocument

            InputStream importInputStream;
            try {
                ZipEntry entry = moduleFile.getEntry(latestImportURI.toString());
                importInputStream = moduleFile.getInputStream(entry);
                try {
                    DefinitionsDocument definition = DefinitionsDocument.Factory.parse(importInputStream);
                    importInputStream.close();
                    wsdlMap.put(latestImportURI, definition);
                    importInputStream.close();
                } catch (XmlException e) {
                    //probably was a schema rather than wsdl.  If there are real problems they will show up later.
View Full Code Here

Examples of org.apache.geronimo.xbeans.wsdl.DefinitionsDocument

                SchemaDocument.Schema schema = schemaDocument.getSchema();
                rewriteSchema(schema, contextURI, key);
                String schemaString = xmlObjectToString(schemaDocument);
                wsdlMap.put(key.toString(), schemaString);
            } else if (value instanceof DefinitionsDocument) {
                DefinitionsDocument doc = (DefinitionsDocument) ((DefinitionsDocument) value).copy();
                TDefinitions definitions = doc.getDefinitions();
                TImport[] imports = definitions.getImportArray();
                for (int i = 0; i < imports.length; i++) {
                    TImport anImport = imports[i];
                    String importLocation = anImport.getLocation().trim();
                    if (!importLocation.startsWith("http://")) {
View Full Code Here

Examples of org.apache.geronimo.xbeans.wsdl.DefinitionsDocument

            if(entry == null){
                throw new RuntimeException("The webservices.xml file points to a non-existant WSDL file "+wsdlURI.toString());
            }
            try {
                wsdlInputStream = moduleFile.getInputStream(entry);
                DefinitionsDocument definition = DefinitionsDocument.Factory.parse(wsdlInputStream);
                wsdlMap.put(wsdlURI, definition);
                wsdlInputStream.close();
                wsdlInputStream = moduleFile.getInputStream(entry);
                streams.add(wsdlInputStream);
            } catch (Exception e) {
View Full Code Here

Examples of org.apache.geronimo.xbeans.wsdl.DefinitionsDocument

            InputStream importInputStream;
            try {
                ZipEntry entry = moduleFile.getEntry(latestImportURI.toString());
                importInputStream = moduleFile.getInputStream(entry);
                try {
                    DefinitionsDocument definition = DefinitionsDocument.Factory.parse(importInputStream);
                    importInputStream.close();
                    wsdlMap.put(latestImportURI, definition);
                    importInputStream.close();
                } catch (XmlException e) {
                    //probably was a schema rather than wsdl.  If there are real problems they will show up later.
View Full Code Here

Examples of org.apache.geronimo.xbeans.wsdl.DefinitionsDocument

        }
        throw new DeploymentException("No element of class " + clazz.getName() + " found");
    }

    public String movePortLocation(String portComponentName, String servletLocation) throws DeploymentException {
        DefinitionsDocument doc = (DefinitionsDocument) wsdlMap.get(uris.get(0));
        TDefinitions definitions = doc.getDefinitions();
        TService[] services = definitions.getServiceArray();
        for (int i = 0; i < services.length; i++) {
            TService service = services[i];
            TPort[] ports = service.getPortArray();
            for (int j = 0; j < ports.length; j++) {
View Full Code Here

Examples of org.oasisOpen.docs.wsrf.x2004.x10.wsrfWSResourceMetadataDescriptor10Draft01.DefinitionsDocument

   {
      InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream( RESOURCE_PATH_SUSHI_PROPS_XML );
      XmlObject propsDocXBean = XmlObject.Factory.parse( in );
      in.close();
      in = Thread.currentThread().getContextClassLoader().getResourceAsStream( RESOURCE_PATH_SUSHI_METADATA_XML );
      DefinitionsDocument metadataDocXBean = (DefinitionsDocument) XmlObject.Factory.parse( in );
      MetadataDescriptorType metadataDesc = metadataDocXBean.getDefinitions().getMetadataDescriptorArray( 0 );
      in.close();
      ResourcePropertySetMetaData propSetMetaData = new XmlBeansResourcePropertySetMetaData( propsDocXBean.schemaType(), metadataDesc );
      m_resourcePropSet = new XmlBeansResourcePropertySet( propsDocXBean, propSetMetaData );
   }
View Full Code Here

Examples of org.oasisOpen.docs.wsrf.x2004.x10.wsrfWSResourceMetadataDescriptor10Draft01.DefinitionsDocument

   {
      InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream( RESOURCE_PATH_SUSHI_PROPS_XML );
      XmlObject propsDocXBean = XmlObject.Factory.parse( in );
      in.close();
      in = Thread.currentThread().getContextClassLoader().getResourceAsStream( RESOURCE_PATH_SUSHI_METADATA_XML );
      DefinitionsDocument metadataDocXBean = (DefinitionsDocument) XmlObject.Factory.parse( in );
      MetadataDescriptorType metadataDesc = metadataDocXBean.getDefinitions().getMetadataDescriptorArray( 0 );
      in.close();
      ResourcePropertySetMetaData propSetMetaData = new XmlBeansResourcePropertySetMetaData( propsDocXBean.schemaType(), metadataDesc );
      m_resourcePropSet = new XmlBeansResourcePropertySet( propsDocXBean, propSetMetaData );
   }
View Full Code Here

Examples of org.oasisOpen.docs.wsrf.x2004.x10.wsrfWSResourceMetadataDescriptor10Draft01.DefinitionsDocument

      InputStream in =
         Thread.currentThread(  ).getContextClassLoader(  ).getResourceAsStream( RESOURCE_PATH_SUSHI_PROPS_XML );
      XmlObject   propsDocXBean = XmlObject.Factory.parse( in );
      in.close(  );
      in = Thread.currentThread(  ).getContextClassLoader(  ).getResourceAsStream( RESOURCE_PATH_SUSHI_METADATA_XML );
      DefinitionsDocument    metadataDocXBean = (DefinitionsDocument) XmlObject.Factory.parse( in );
      MetadataDescriptorType metadataDesc = metadataDocXBean.getDefinitions(  ).getMetadataDescriptorArray( 0 );
      in.close(  );
      ResourcePropertySetMetaData propSetMetaData =
         new XmlBeansResourcePropertySetMetaData( propsDocXBean.schemaType(  ), metadataDesc );
      m_resourcePropSet = new XmlBeansResourcePropertySet( propsDocXBean, propSetMetaData );
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.