Java源码示例:com.sun.xml.internal.ws.encoding.soap.streaming.SOAPNamespaceConstants

示例1
private void /*JAXBRIContext*/ createJAXBContext() {
        final List<TypeInfo> types = getAllTypeInfos();
        final List<Class> cls = new ArrayList<Class>(types.size() + additionalClasses.size());

        cls.addAll(additionalClasses);
        for (TypeInfo type : types) {
            cls.add((Class) type.type);
        }

        try {
            //jaxbContext = JAXBRIContext.newInstance(cls, types, targetNamespace, false);
            // Need to avoid doPriv block once JAXB is fixed. Afterwards, use the above
            bindingContext = AccessController.doPrivileged(new PrivilegedExceptionAction<BindingContext>() {
                public BindingContext run() throws Exception {
                    if(LOGGER.isLoggable(Level.FINEST)) {
                        LOGGER.log(Level.FINEST, "Creating JAXBContext with classes={0} and types={1}", new Object[]{cls, types});
                    }
                    UsesJAXBContextFeature f = features.get(UsesJAXBContextFeature.class);
                    com.oracle.webservices.internal.api.databinding.DatabindingModeFeature dmf =
                            features.get(com.oracle.webservices.internal.api.databinding.DatabindingModeFeature.class);
                    JAXBContextFactory factory = f!=null ? f.getFactory() : null;
                    if(factory==null)   factory=JAXBContextFactory.DEFAULT;

//                    return factory.createJAXBContext(AbstractSEIModelImpl.this,cls,types);

                    databindingInfo.properties().put(JAXBContextFactory.class.getName(), factory);
                    if (dmf != null) {
                        if (LOGGER.isLoggable(Level.FINE))
                            LOGGER.log(Level.FINE, "DatabindingModeFeature in SEI specifies mode: {0}", dmf.getMode());
                        databindingInfo.setDatabindingMode(dmf
                                .getMode());
                    }

                        if (f!=null) databindingInfo.setDatabindingMode(BindingContextFactory.DefaultDatabindingMode);
                        databindingInfo.setClassLoader(classLoader);
                        databindingInfo.contentClasses().addAll(cls);
                        databindingInfo.typeInfos().addAll(types);
                        databindingInfo.properties().put("c14nSupport", Boolean.FALSE);
                        databindingInfo.setDefaultNamespace(AbstractSEIModelImpl.this.getDefaultSchemaNamespace());
                        BindingContext bc =  BindingContextFactory.create(databindingInfo);
                            if (LOGGER.isLoggable(Level.FINE))
                                LOGGER.log(Level.FINE,
                                        "Created binding context: "
                                                + bc.getClass().getName());
//                      System.out.println("---------------------- databinding " + bc);
                        return bc;
                }
            });
//          createBridgeMap(types);
            createBondMap(types);
        } catch (PrivilegedActionException e) {
            throw new WebServiceException(ModelerMessages.UNABLE_TO_CREATE_JAXB_CONTEXT(), e);
        }
        knownNamespaceURIs = new ArrayList<String>();
        for (String namespace : bindingContext.getKnownNamespaceURIs()) {
            if (namespace.length() > 0) {
                if (!namespace.equals(SOAPNamespaceConstants.XSD) && !namespace.equals(SOAPNamespaceConstants.XMLNS))
                    knownNamespaceURIs.add(namespace);
            }
        }

        marshallers = new Pool.Marshaller(jaxbContext);

        //return getJAXBContext();
    }
 
示例2
private void /*JAXBRIContext*/ createJAXBContext() {
        final List<TypeInfo> types = getAllTypeInfos();
        final List<Class> cls = new ArrayList<Class>(types.size() + additionalClasses.size());

        cls.addAll(additionalClasses);
        for (TypeInfo type : types) {
            cls.add((Class) type.type);
        }

        try {
            //jaxbContext = JAXBRIContext.newInstance(cls, types, targetNamespace, false);
            // Need to avoid doPriv block once JAXB is fixed. Afterwards, use the above
            bindingContext = AccessController.doPrivileged(new PrivilegedExceptionAction<BindingContext>() {
                public BindingContext run() throws Exception {
                    if(LOGGER.isLoggable(Level.FINEST)) {
                        LOGGER.log(Level.FINEST, "Creating JAXBContext with classes={0} and types={1}", new Object[]{cls, types});
                    }
                    UsesJAXBContextFeature f = features.get(UsesJAXBContextFeature.class);
                    com.oracle.webservices.internal.api.databinding.DatabindingModeFeature dmf =
                            features.get(com.oracle.webservices.internal.api.databinding.DatabindingModeFeature.class);
                    JAXBContextFactory factory = f!=null ? f.getFactory() : null;
                    if(factory==null)   factory=JAXBContextFactory.DEFAULT;

//                    return factory.createJAXBContext(AbstractSEIModelImpl.this,cls,types);

                    databindingInfo.properties().put(JAXBContextFactory.class.getName(), factory);
                    if (dmf != null) {
                        if (LOGGER.isLoggable(Level.FINE))
                            LOGGER.log(Level.FINE, "DatabindingModeFeature in SEI specifies mode: {0}", dmf.getMode());
                        databindingInfo.setDatabindingMode(dmf
                                .getMode());
                    }

                        if (f!=null) databindingInfo.setDatabindingMode(BindingContextFactory.DefaultDatabindingMode);
                        databindingInfo.setClassLoader(classLoader);
                        databindingInfo.contentClasses().addAll(cls);
                        databindingInfo.typeInfos().addAll(types);
                        databindingInfo.properties().put("c14nSupport", Boolean.FALSE);
                        databindingInfo.setDefaultNamespace(AbstractSEIModelImpl.this.getDefaultSchemaNamespace());
                        BindingContext bc =  BindingContextFactory.create(databindingInfo);
                            if (LOGGER.isLoggable(Level.FINE))
                                LOGGER.log(Level.FINE,
                                        "Created binding context: "
                                                + bc.getClass().getName());
//                      System.out.println("---------------------- databinding " + bc);
                        return bc;
                }
            });
//          createBridgeMap(types);
            createBondMap(types);
        } catch (PrivilegedActionException e) {
            throw new WebServiceException(ModelerMessages.UNABLE_TO_CREATE_JAXB_CONTEXT(), e);
        }
        knownNamespaceURIs = new ArrayList<String>();
        for (String namespace : bindingContext.getKnownNamespaceURIs()) {
            if (namespace.length() > 0) {
                if (!namespace.equals(SOAPNamespaceConstants.XSD) && !namespace.equals(SOAPNamespaceConstants.XMLNS))
                    knownNamespaceURIs.add(namespace);
            }
        }

        marshallers = new Pool.Marshaller(jaxbContext);

        //return getJAXBContext();
    }
 
示例3
private void /*JAXBRIContext*/ createJAXBContext() {
        final List<TypeInfo> types = getAllTypeInfos();
        final List<Class> cls = new ArrayList<Class>(types.size() + additionalClasses.size());

        cls.addAll(additionalClasses);
        for (TypeInfo type : types) {
            cls.add((Class) type.type);
        }

        try {
            //jaxbContext = JAXBRIContext.newInstance(cls, types, targetNamespace, false);
            // Need to avoid doPriv block once JAXB is fixed. Afterwards, use the above
            bindingContext = AccessController.doPrivileged(new PrivilegedExceptionAction<BindingContext>() {
                public BindingContext run() throws Exception {
                    if(LOGGER.isLoggable(Level.FINEST)) {
                        LOGGER.log(Level.FINEST, "Creating JAXBContext with classes={0} and types={1}", new Object[]{cls, types});
                    }
                    UsesJAXBContextFeature f = features.get(UsesJAXBContextFeature.class);
                    com.oracle.webservices.internal.api.databinding.DatabindingModeFeature dmf =
                            features.get(com.oracle.webservices.internal.api.databinding.DatabindingModeFeature.class);
                    JAXBContextFactory factory = f!=null ? f.getFactory() : null;
                    if(factory==null)   factory=JAXBContextFactory.DEFAULT;

//                    return factory.createJAXBContext(AbstractSEIModelImpl.this,cls,types);

                    databindingInfo.properties().put(JAXBContextFactory.class.getName(), factory);
                    if (dmf != null) {
                        if (LOGGER.isLoggable(Level.FINE))
                            LOGGER.log(Level.FINE, "DatabindingModeFeature in SEI specifies mode: {0}", dmf.getMode());
                        databindingInfo.setDatabindingMode(dmf
                                .getMode());
                    }

                        if (f!=null) databindingInfo.setDatabindingMode(BindingContextFactory.DefaultDatabindingMode);
                        databindingInfo.setClassLoader(classLoader);
                        databindingInfo.contentClasses().addAll(cls);
                        databindingInfo.typeInfos().addAll(types);
                        databindingInfo.properties().put("c14nSupport", Boolean.FALSE);
                        databindingInfo.setDefaultNamespace(AbstractSEIModelImpl.this.getDefaultSchemaNamespace());
                        BindingContext bc =  BindingContextFactory.create(databindingInfo);
                            if (LOGGER.isLoggable(Level.FINE))
                                LOGGER.log(Level.FINE,
                                        "Created binding context: "
                                                + bc.getClass().getName());
//                      System.out.println("---------------------- databinding " + bc);
                        return bc;
                }
            });
//          createBridgeMap(types);
            createBondMap(types);
        } catch (PrivilegedActionException e) {
            throw new WebServiceException(ModelerMessages.UNABLE_TO_CREATE_JAXB_CONTEXT(), e);
        }
        knownNamespaceURIs = new ArrayList<String>();
        for (String namespace : bindingContext.getKnownNamespaceURIs()) {
            if (namespace.length() > 0) {
                if (!namespace.equals(SOAPNamespaceConstants.XSD) && !namespace.equals(SOAPNamespaceConstants.XMLNS))
                    knownNamespaceURIs.add(namespace);
            }
        }

        marshallers = new Pool.Marshaller(jaxbContext);

        //return getJAXBContext();
    }
 
示例4
private void /*JAXBRIContext*/ createJAXBContext() {
        final List<TypeInfo> types = getAllTypeInfos();
        final List<Class> cls = new ArrayList<Class>(types.size() + additionalClasses.size());

        cls.addAll(additionalClasses);
        for (TypeInfo type : types) {
            cls.add((Class) type.type);
        }

        try {
            //jaxbContext = JAXBRIContext.newInstance(cls, types, targetNamespace, false);
            // Need to avoid doPriv block once JAXB is fixed. Afterwards, use the above
            bindingContext = AccessController.doPrivileged(new PrivilegedExceptionAction<BindingContext>() {
                public BindingContext run() throws Exception {
                    if(LOGGER.isLoggable(Level.FINEST)) {
                        LOGGER.log(Level.FINEST, "Creating JAXBContext with classes={0} and types={1}", new Object[]{cls, types});
                    }
                    UsesJAXBContextFeature f = features.get(UsesJAXBContextFeature.class);
                    com.oracle.webservices.internal.api.databinding.DatabindingModeFeature dmf =
                            features.get(com.oracle.webservices.internal.api.databinding.DatabindingModeFeature.class);
                    JAXBContextFactory factory = f!=null ? f.getFactory() : null;
                    if(factory==null)   factory=JAXBContextFactory.DEFAULT;

//                    return factory.createJAXBContext(AbstractSEIModelImpl.this,cls,types);

                    databindingInfo.properties().put(JAXBContextFactory.class.getName(), factory);
                    if (dmf != null) {
                        if (LOGGER.isLoggable(Level.FINE))
                            LOGGER.log(Level.FINE, "DatabindingModeFeature in SEI specifies mode: {0}", dmf.getMode());
                        databindingInfo.setDatabindingMode(dmf
                                .getMode());
                    }

                        if (f!=null) databindingInfo.setDatabindingMode(BindingContextFactory.DefaultDatabindingMode);
                        databindingInfo.setClassLoader(classLoader);
                        databindingInfo.contentClasses().addAll(cls);
                        databindingInfo.typeInfos().addAll(types);
                        databindingInfo.properties().put("c14nSupport", Boolean.FALSE);
                        databindingInfo.setDefaultNamespace(AbstractSEIModelImpl.this.getDefaultSchemaNamespace());
                        BindingContext bc =  BindingContextFactory.create(databindingInfo);
                            if (LOGGER.isLoggable(Level.FINE))
                                LOGGER.log(Level.FINE,
                                        "Created binding context: "
                                                + bc.getClass().getName());
//                      System.out.println("---------------------- databinding " + bc);
                        return bc;
                }
            });
//          createBridgeMap(types);
            createBondMap(types);
        } catch (PrivilegedActionException e) {
            throw new WebServiceException(ModelerMessages.UNABLE_TO_CREATE_JAXB_CONTEXT(), e);
        }
        knownNamespaceURIs = new ArrayList<String>();
        for (String namespace : bindingContext.getKnownNamespaceURIs()) {
            if (namespace.length() > 0) {
                if (!namespace.equals(SOAPNamespaceConstants.XSD) && !namespace.equals(SOAPNamespaceConstants.XMLNS))
                    knownNamespaceURIs.add(namespace);
            }
        }

        marshallers = new Pool.Marshaller(jaxbContext);

        //return getJAXBContext();
    }
 
示例5
private void /*JAXBRIContext*/ createJAXBContext() {
        final List<TypeInfo> types = getAllTypeInfos();
        final List<Class> cls = new ArrayList<Class>(types.size() + additionalClasses.size());

        cls.addAll(additionalClasses);
        for (TypeInfo type : types) {
            cls.add((Class) type.type);
        }

        try {
            //jaxbContext = JAXBRIContext.newInstance(cls, types, targetNamespace, false);
            // Need to avoid doPriv block once JAXB is fixed. Afterwards, use the above
            bindingContext = AccessController.doPrivileged(new PrivilegedExceptionAction<BindingContext>() {
                public BindingContext run() throws Exception {
                    if(LOGGER.isLoggable(Level.FINEST)) {
                        LOGGER.log(Level.FINEST, "Creating JAXBContext with classes={0} and types={1}", new Object[]{cls, types});
                    }
                    UsesJAXBContextFeature f = features.get(UsesJAXBContextFeature.class);
                    com.oracle.webservices.internal.api.databinding.DatabindingModeFeature dmf =
                            features.get(com.oracle.webservices.internal.api.databinding.DatabindingModeFeature.class);
                    JAXBContextFactory factory = f!=null ? f.getFactory() : null;
                    if(factory==null)   factory=JAXBContextFactory.DEFAULT;

//                    return factory.createJAXBContext(AbstractSEIModelImpl.this,cls,types);

                    databindingInfo.properties().put(JAXBContextFactory.class.getName(), factory);
                    if (dmf != null) {
                        if (LOGGER.isLoggable(Level.FINE))
                            LOGGER.log(Level.FINE, "DatabindingModeFeature in SEI specifies mode: {0}", dmf.getMode());
                        databindingInfo.setDatabindingMode(dmf
                                .getMode());
                    }

                        if (f!=null) databindingInfo.setDatabindingMode(BindingContextFactory.DefaultDatabindingMode);
                        databindingInfo.setClassLoader(classLoader);
                        databindingInfo.contentClasses().addAll(cls);
                        databindingInfo.typeInfos().addAll(types);
                        databindingInfo.properties().put("c14nSupport", Boolean.FALSE);
                        databindingInfo.setDefaultNamespace(AbstractSEIModelImpl.this.getDefaultSchemaNamespace());
                        BindingContext bc =  BindingContextFactory.create(databindingInfo);
                            if (LOGGER.isLoggable(Level.FINE))
                                LOGGER.log(Level.FINE,
                                        "Created binding context: "
                                                + bc.getClass().getName());
//                      System.out.println("---------------------- databinding " + bc);
                        return bc;
                }
            });
//          createBridgeMap(types);
            createBondMap(types);
        } catch (PrivilegedActionException e) {
            throw new WebServiceException(ModelerMessages.UNABLE_TO_CREATE_JAXB_CONTEXT(), e);
        }
        knownNamespaceURIs = new ArrayList<String>();
        for (String namespace : bindingContext.getKnownNamespaceURIs()) {
            if (namespace.length() > 0) {
                if (!namespace.equals(SOAPNamespaceConstants.XSD) && !namespace.equals(SOAPNamespaceConstants.XMLNS))
                    knownNamespaceURIs.add(namespace);
            }
        }

        marshallers = new Pool.Marshaller(jaxbContext);

        //return getJAXBContext();
    }
 
示例6
private void /*JAXBRIContext*/ createJAXBContext() {
        final List<TypeInfo> types = getAllTypeInfos();
        final List<Class> cls = new ArrayList<Class>(types.size() + additionalClasses.size());

        cls.addAll(additionalClasses);
        for (TypeInfo type : types) {
            cls.add((Class) type.type);
        }

        try {
            //jaxbContext = JAXBRIContext.newInstance(cls, types, targetNamespace, false);
            // Need to avoid doPriv block once JAXB is fixed. Afterwards, use the above
            bindingContext = AccessController.doPrivileged(new PrivilegedExceptionAction<BindingContext>() {
                public BindingContext run() throws Exception {
                    if(LOGGER.isLoggable(Level.FINEST)) {
                        LOGGER.log(Level.FINEST, "Creating JAXBContext with classes={0} and types={1}", new Object[]{cls, types});
                    }
                    UsesJAXBContextFeature f = features.get(UsesJAXBContextFeature.class);
                    com.oracle.webservices.internal.api.databinding.DatabindingModeFeature dmf =
                            features.get(com.oracle.webservices.internal.api.databinding.DatabindingModeFeature.class);
                    JAXBContextFactory factory = f!=null ? f.getFactory() : null;
                    if(factory==null)   factory=JAXBContextFactory.DEFAULT;

//                    return factory.createJAXBContext(AbstractSEIModelImpl.this,cls,types);

                    databindingInfo.properties().put(JAXBContextFactory.class.getName(), factory);
                    if (dmf != null) {
                        if (LOGGER.isLoggable(Level.FINE))
                            LOGGER.log(Level.FINE, "DatabindingModeFeature in SEI specifies mode: {0}", dmf.getMode());
                        databindingInfo.setDatabindingMode(dmf
                                .getMode());
                    }

                        if (f!=null) databindingInfo.setDatabindingMode(BindingContextFactory.DefaultDatabindingMode);
                        databindingInfo.setClassLoader(classLoader);
                        databindingInfo.contentClasses().addAll(cls);
                        databindingInfo.typeInfos().addAll(types);
                        databindingInfo.properties().put("c14nSupport", Boolean.FALSE);
                        databindingInfo.setDefaultNamespace(AbstractSEIModelImpl.this.getDefaultSchemaNamespace());
                        BindingContext bc =  BindingContextFactory.create(databindingInfo);
                            if (LOGGER.isLoggable(Level.FINE))
                                LOGGER.log(Level.FINE,
                                        "Created binding context: "
                                                + bc.getClass().getName());
//                      System.out.println("---------------------- databinding " + bc);
                        return bc;
                }
            });
//          createBridgeMap(types);
            createBondMap(types);
        } catch (PrivilegedActionException e) {
            throw new WebServiceException(ModelerMessages.UNABLE_TO_CREATE_JAXB_CONTEXT(), e);
        }
        knownNamespaceURIs = new ArrayList<String>();
        for (String namespace : bindingContext.getKnownNamespaceURIs()) {
            if (namespace.length() > 0) {
                if (!namespace.equals(SOAPNamespaceConstants.XSD) && !namespace.equals(SOAPNamespaceConstants.XMLNS))
                    knownNamespaceURIs.add(namespace);
            }
        }

        marshallers = new Pool.Marshaller(jaxbContext);

        //return getJAXBContext();
    }
 
示例7
private void /*JAXBRIContext*/ createJAXBContext() {
        final List<TypeInfo> types = getAllTypeInfos();
        final List<Class> cls = new ArrayList<Class>(types.size() + additionalClasses.size());

        cls.addAll(additionalClasses);
        for (TypeInfo type : types) {
            cls.add((Class) type.type);
        }

        try {
            //jaxbContext = JAXBRIContext.newInstance(cls, types, targetNamespace, false);
            // Need to avoid doPriv block once JAXB is fixed. Afterwards, use the above
            bindingContext = AccessController.doPrivileged(new PrivilegedExceptionAction<BindingContext>() {
                public BindingContext run() throws Exception {
                    if(LOGGER.isLoggable(Level.FINEST)) {
                        LOGGER.log(Level.FINEST, "Creating JAXBContext with classes={0} and types={1}", new Object[]{cls, types});
                    }
                    UsesJAXBContextFeature f = features.get(UsesJAXBContextFeature.class);
                    com.oracle.webservices.internal.api.databinding.DatabindingModeFeature dmf =
                            features.get(com.oracle.webservices.internal.api.databinding.DatabindingModeFeature.class);
                    JAXBContextFactory factory = f!=null ? f.getFactory() : null;
                    if(factory==null)   factory=JAXBContextFactory.DEFAULT;

//                    return factory.createJAXBContext(AbstractSEIModelImpl.this,cls,types);

                    databindingInfo.properties().put(JAXBContextFactory.class.getName(), factory);
                    if (dmf != null) {
                        if (LOGGER.isLoggable(Level.FINE))
                            LOGGER.log(Level.FINE, "DatabindingModeFeature in SEI specifies mode: {0}", dmf.getMode());
                        databindingInfo.setDatabindingMode(dmf
                                .getMode());
                    }

                        if (f!=null) databindingInfo.setDatabindingMode(BindingContextFactory.DefaultDatabindingMode);
                        databindingInfo.setClassLoader(classLoader);
                        databindingInfo.contentClasses().addAll(cls);
                        databindingInfo.typeInfos().addAll(types);
                        databindingInfo.properties().put("c14nSupport", Boolean.FALSE);
                        databindingInfo.setDefaultNamespace(AbstractSEIModelImpl.this.getDefaultSchemaNamespace());
                        BindingContext bc =  BindingContextFactory.create(databindingInfo);
                            if (LOGGER.isLoggable(Level.FINE))
                                LOGGER.log(Level.FINE,
                                        "Created binding context: "
                                                + bc.getClass().getName());
//                      System.out.println("---------------------- databinding " + bc);
                        return bc;
                }
            });
//          createBridgeMap(types);
            createBondMap(types);
        } catch (PrivilegedActionException e) {
            throw new WebServiceException(ModelerMessages.UNABLE_TO_CREATE_JAXB_CONTEXT(), e);
        }
        knownNamespaceURIs = new ArrayList<String>();
        for (String namespace : bindingContext.getKnownNamespaceURIs()) {
            if (namespace.length() > 0) {
                if (!namespace.equals(SOAPNamespaceConstants.XSD) && !namespace.equals(SOAPNamespaceConstants.XMLNS))
                    knownNamespaceURIs.add(namespace);
            }
        }

        marshallers = new Pool.Marshaller(jaxbContext);

        //return getJAXBContext();
    }
 
示例8
private void /*JAXBRIContext*/ createJAXBContext() {
        final List<TypeInfo> types = getAllTypeInfos();
        final List<Class> cls = new ArrayList<Class>(types.size() + additionalClasses.size());

        cls.addAll(additionalClasses);
        for (TypeInfo type : types) {
            cls.add((Class) type.type);
        }

        try {
            //jaxbContext = JAXBRIContext.newInstance(cls, types, targetNamespace, false);
            // Need to avoid doPriv block once JAXB is fixed. Afterwards, use the above
            bindingContext = AccessController.doPrivileged(new PrivilegedExceptionAction<BindingContext>() {
                public BindingContext run() throws Exception {
                    if(LOGGER.isLoggable(Level.FINEST)) {
                        LOGGER.log(Level.FINEST, "Creating JAXBContext with classes={0} and types={1}", new Object[]{cls, types});
                    }
                    UsesJAXBContextFeature f = features.get(UsesJAXBContextFeature.class);
                    com.oracle.webservices.internal.api.databinding.DatabindingModeFeature dmf =
                            features.get(com.oracle.webservices.internal.api.databinding.DatabindingModeFeature.class);
                    JAXBContextFactory factory = f!=null ? f.getFactory() : null;
                    if(factory==null)   factory=JAXBContextFactory.DEFAULT;

//                    return factory.createJAXBContext(AbstractSEIModelImpl.this,cls,types);

                    databindingInfo.properties().put(JAXBContextFactory.class.getName(), factory);
                    if (dmf != null) {
                        if (LOGGER.isLoggable(Level.FINE))
                            LOGGER.log(Level.FINE, "DatabindingModeFeature in SEI specifies mode: {0}", dmf.getMode());
                        databindingInfo.setDatabindingMode(dmf
                                .getMode());
                    }

                        if (f!=null) databindingInfo.setDatabindingMode(BindingContextFactory.DefaultDatabindingMode);
                        databindingInfo.setClassLoader(classLoader);
                        databindingInfo.contentClasses().addAll(cls);
                        databindingInfo.typeInfos().addAll(types);
                        databindingInfo.properties().put("c14nSupport", Boolean.FALSE);
                        databindingInfo.setDefaultNamespace(AbstractSEIModelImpl.this.getDefaultSchemaNamespace());
                        BindingContext bc =  BindingContextFactory.create(databindingInfo);
                            if (LOGGER.isLoggable(Level.FINE))
                                LOGGER.log(Level.FINE,
                                        "Created binding context: "
                                                + bc.getClass().getName());
//                      System.out.println("---------------------- databinding " + bc);
                        return bc;
                }
            });
//          createBridgeMap(types);
            createBondMap(types);
        } catch (PrivilegedActionException e) {
            throw new WebServiceException(ModelerMessages.UNABLE_TO_CREATE_JAXB_CONTEXT(), e);
        }
        knownNamespaceURIs = new ArrayList<String>();
        for (String namespace : bindingContext.getKnownNamespaceURIs()) {
            if (namespace.length() > 0) {
                if (!namespace.equals(SOAPNamespaceConstants.XSD) && !namespace.equals(SOAPNamespaceConstants.XMLNS))
                    knownNamespaceURIs.add(namespace);
            }
        }

        marshallers = new Pool.Marshaller(jaxbContext);

        //return getJAXBContext();
    }
 
示例9
/**
 * Declare a Namespace prefix.
 *
 * <p>This method declares a prefix in the current Namespace
 * context; the prefix will remain in force until this context
 * is popped, unless it is shadowed in a descendant context.</p>
 *
 * <p>To declare a default Namespace, use the empty string.  The
 * prefix must not be "xml" or "xmlns".</p>
 *
 * <p>Note that you must <em>not</em> declare a prefix after
 * you've pushed and popped another Namespace.</p>
 *
 * <p>Note that there is an asymmetry in this library: while {@link
 * #getPrefix getPrefix} will not return the default "" prefix,
 * even if you have declared one; to check for a default prefix,
 * you have to look it up explicitly using {@link #getURI getURI}.
 * This asymmetry exists to make it easier to look up prefixes
 * for attribute names, where the default prefix is not allowed.</p>
 *
 * @param prefix The prefix to declare, or null for the empty
 *        string.
 * @param uri The Namespace URI to associate with the prefix.
 * @return true if the prefix was legal, false otherwise
 * @see #processName
 * @see #getURI
 * @see #getPrefix
 */
public boolean declarePrefix(String prefix, String uri) {
    // bugfix#: 4989753
    if ((prefix.equals("xml") && !uri.equals(SOAPNamespaceConstants.XMLNS))
        || prefix.equals("xmlns")) {
        return false;
    } else {
        currentContext.declarePrefix(prefix, uri);
        return true;
    }
}
 
示例10
/**
 * Declare a Namespace prefix.
 *
 * <p>This method declares a prefix in the current Namespace
 * context; the prefix will remain in force until this context
 * is popped, unless it is shadowed in a descendant context.</p>
 *
 * <p>To declare a default Namespace, use the empty string.  The
 * prefix must not be "xml" or "xmlns".</p>
 *
 * <p>Note that you must <em>not</em> declare a prefix after
 * you've pushed and popped another Namespace.</p>
 *
 * <p>Note that there is an asymmetry in this library: while {@link
 * #getPrefix getPrefix} will not return the default "" prefix,
 * even if you have declared one; to check for a default prefix,
 * you have to look it up explicitly using {@link #getURI getURI}.
 * This asymmetry exists to make it easier to look up prefixes
 * for attribute names, where the default prefix is not allowed.</p>
 *
 * @param prefix The prefix to declare, or null for the empty
 *        string.
 * @param uri The Namespace URI to associate with the prefix.
 * @return true if the prefix was legal, false otherwise
 * @see #processName
 * @see #getURI
 * @see #getPrefix
 */
public boolean declarePrefix(String prefix, String uri) {
    // bugfix#: 4989753
    if ((prefix.equals("xml") && !uri.equals(SOAPNamespaceConstants.XMLNS))
        || prefix.equals("xmlns")) {
        return false;
    } else {
        currentContext.declarePrefix(prefix, uri);
        return true;
    }
}
 
示例11
/**
 * Declare a Namespace prefix.
 *
 * <p>This method declares a prefix in the current Namespace
 * context; the prefix will remain in force until this context
 * is popped, unless it is shadowed in a descendant context.</p>
 *
 * <p>To declare a default Namespace, use the empty string.  The
 * prefix must not be "xml" or "xmlns".</p>
 *
 * <p>Note that you must <em>not</em> declare a prefix after
 * you've pushed and popped another Namespace.</p>
 *
 * <p>Note that there is an asymmetry in this library: while {@link
 * #getPrefix getPrefix} will not return the default "" prefix,
 * even if you have declared one; to check for a default prefix,
 * you have to look it up explicitly using {@link #getURI getURI}.
 * This asymmetry exists to make it easier to look up prefixes
 * for attribute names, where the default prefix is not allowed.</p>
 *
 * @param prefix The prefix to declare, or null for the empty
 *        string.
 * @param uri The Namespace URI to associate with the prefix.
 * @return true if the prefix was legal, false otherwise
 * @see #processName
 * @see #getURI
 * @see #getPrefix
 */
public boolean declarePrefix(String prefix, String uri) {
    // bugfix#: 4989753
    if ((prefix.equals("xml") && !uri.equals(SOAPNamespaceConstants.XMLNS))
        || prefix.equals("xmlns")) {
        return false;
    } else {
        currentContext.declarePrefix(prefix, uri);
        return true;
    }
}
 
示例12
/**
 * Declare a Namespace prefix.
 *
 * <p>This method declares a prefix in the current Namespace
 * context; the prefix will remain in force until this context
 * is popped, unless it is shadowed in a descendant context.</p>
 *
 * <p>To declare a default Namespace, use the empty string.  The
 * prefix must not be "xml" or "xmlns".</p>
 *
 * <p>Note that you must <em>not</em> declare a prefix after
 * you've pushed and popped another Namespace.</p>
 *
 * <p>Note that there is an asymmetry in this library: while {@link
 * #getPrefix getPrefix} will not return the default "" prefix,
 * even if you have declared one; to check for a default prefix,
 * you have to look it up explicitly using {@link #getURI getURI}.
 * This asymmetry exists to make it easier to look up prefixes
 * for attribute names, where the default prefix is not allowed.</p>
 *
 * @param prefix The prefix to declare, or null for the empty
 *        string.
 * @param uri The Namespace URI to associate with the prefix.
 * @return true if the prefix was legal, false otherwise
 * @see #processName
 * @see #getURI
 * @see #getPrefix
 */
public boolean declarePrefix(String prefix, String uri) {
    // bugfix#: 4989753
    if ((prefix.equals("xml") && !uri.equals(SOAPNamespaceConstants.XMLNS))
        || prefix.equals("xmlns")) {
        return false;
    } else {
        currentContext.declarePrefix(prefix, uri);
        return true;
    }
}
 
示例13
/**
 * Declare a Namespace prefix.
 *
 * <p>This method declares a prefix in the current Namespace
 * context; the prefix will remain in force until this context
 * is popped, unless it is shadowed in a descendant context.</p>
 *
 * <p>To declare a default Namespace, use the empty string.  The
 * prefix must not be "xml" or "xmlns".</p>
 *
 * <p>Note that you must <em>not</em> declare a prefix after
 * you've pushed and popped another Namespace.</p>
 *
 * <p>Note that there is an asymmetry in this library: while {@link
 * #getPrefix getPrefix} will not return the default "" prefix,
 * even if you have declared one; to check for a default prefix,
 * you have to look it up explicitly using {@link #getURI getURI}.
 * This asymmetry exists to make it easier to look up prefixes
 * for attribute names, where the default prefix is not allowed.</p>
 *
 * @param prefix The prefix to declare, or null for the empty
 *        string.
 * @param uri The Namespace URI to associate with the prefix.
 * @return true if the prefix was legal, false otherwise
 * @see #processName
 * @see #getURI
 * @see #getPrefix
 */
public boolean declarePrefix(String prefix, String uri) {
    // bugfix#: 4989753
    if ((prefix.equals("xml") && !uri.equals(SOAPNamespaceConstants.XMLNS))
        || prefix.equals("xmlns")) {
        return false;
    } else {
        currentContext.declarePrefix(prefix, uri);
        return true;
    }
}
 
示例14
/**
 * Declare a Namespace prefix.
 *
 * <p>This method declares a prefix in the current Namespace
 * context; the prefix will remain in force until this context
 * is popped, unless it is shadowed in a descendant context.</p>
 *
 * <p>To declare a default Namespace, use the empty string.  The
 * prefix must not be "xml" or "xmlns".</p>
 *
 * <p>Note that you must <em>not</em> declare a prefix after
 * you've pushed and popped another Namespace.</p>
 *
 * <p>Note that there is an asymmetry in this library: while {@link
 * #getPrefix getPrefix} will not return the default "" prefix,
 * even if you have declared one; to check for a default prefix,
 * you have to look it up explicitly using {@link #getURI getURI}.
 * This asymmetry exists to make it easier to look up prefixes
 * for attribute names, where the default prefix is not allowed.</p>
 *
 * @param prefix The prefix to declare, or null for the empty
 *        string.
 * @param uri The Namespace URI to associate with the prefix.
 * @return true if the prefix was legal, false otherwise
 * @see #processName
 * @see #getURI
 * @see #getPrefix
 */
public boolean declarePrefix(String prefix, String uri) {
    // bugfix#: 4989753
    if ((prefix.equals("xml") && !uri.equals(SOAPNamespaceConstants.XMLNS))
        || prefix.equals("xmlns")) {
        return false;
    } else {
        currentContext.declarePrefix(prefix, uri);
        return true;
    }
}
 
示例15
/**
 * Declare a Namespace prefix.
 *
 * <p>This method declares a prefix in the current Namespace
 * context; the prefix will remain in force until this context
 * is popped, unless it is shadowed in a descendant context.</p>
 *
 * <p>To declare a default Namespace, use the empty string.  The
 * prefix must not be "xml" or "xmlns".</p>
 *
 * <p>Note that you must <em>not</em> declare a prefix after
 * you've pushed and popped another Namespace.</p>
 *
 * <p>Note that there is an asymmetry in this library: while {@link
 * #getPrefix getPrefix} will not return the default "" prefix,
 * even if you have declared one; to check for a default prefix,
 * you have to look it up explicitly using {@link #getURI getURI}.
 * This asymmetry exists to make it easier to look up prefixes
 * for attribute names, where the default prefix is not allowed.</p>
 *
 * @param prefix The prefix to declare, or null for the empty
 *        string.
 * @param uri The Namespace URI to associate with the prefix.
 * @return true if the prefix was legal, false otherwise
 * @see #processName
 * @see #getURI
 * @see #getPrefix
 */
public boolean declarePrefix(String prefix, String uri) {
    // bugfix#: 4989753
    if ((prefix.equals("xml") && !uri.equals(SOAPNamespaceConstants.XMLNS))
        || prefix.equals("xmlns")) {
        return false;
    } else {
        currentContext.declarePrefix(prefix, uri);
        return true;
    }
}
 
示例16
/**
 * Declare a Namespace prefix.
 *
 * <p>This method declares a prefix in the current Namespace
 * context; the prefix will remain in force until this context
 * is popped, unless it is shadowed in a descendant context.</p>
 *
 * <p>To declare a default Namespace, use the empty string.  The
 * prefix must not be "xml" or "xmlns".</p>
 *
 * <p>Note that you must <em>not</em> declare a prefix after
 * you've pushed and popped another Namespace.</p>
 *
 * <p>Note that there is an asymmetry in this library: while {@link
 * #getPrefix getPrefix} will not return the default "" prefix,
 * even if you have declared one; to check for a default prefix,
 * you have to look it up explicitly using {@link #getURI getURI}.
 * This asymmetry exists to make it easier to look up prefixes
 * for attribute names, where the default prefix is not allowed.</p>
 *
 * @param prefix The prefix to declare, or null for the empty
 *        string.
 * @param uri The Namespace URI to associate with the prefix.
 * @return true if the prefix was legal, false otherwise
 * @see #processName
 * @see #getURI
 * @see #getPrefix
 */
public boolean declarePrefix(String prefix, String uri) {
    // bugfix#: 4989753
    if ((prefix.equals("xml") && !uri.equals(SOAPNamespaceConstants.XMLNS))
        || prefix.equals("xmlns")) {
        return false;
    } else {
        currentContext.declarePrefix(prefix, uri);
        return true;
    }
}
 
示例17
/**
 * Returns wsdl:[email protected] attribute. Sub classes
 * are expected to override this method to provide their transport
 * attribute.
 *
 * @return wsdl:[email protected] attribute
 * @since JAX-WS RI 2.1.6
 */
public @NotNull String getTransport() {
    return SOAPNamespaceConstants.TRANSPORT_HTTP;
}
 
示例18
/**
 * Returns wsdl:[email protected] attribute. Sub classes
 * are expected to override this method to provide their transport
 * attribute.
 *
 * @return wsdl:[email protected] attribute
 * @since JAX-WS RI 2.1.6
 */
public @NotNull String getTransport() {
    return SOAPNamespaceConstants.TRANSPORT_HTTP;
}
 
示例19
/**
 * Returns wsdl:[email protected] attribute. Sub classes
 * are expected to override this method to provide their transport
 * attribute.
 *
 * @return wsdl:[email protected] attribute
 * @since JAX-WS RI 2.1.6
 */
public @NotNull String getTransport() {
    return SOAPNamespaceConstants.TRANSPORT_HTTP;
}
 
示例20
/**
 * Returns wsdl:[email protected] attribute. Sub classes
 * are expected to override this method to provide their transport
 * attribute.
 *
 * @return wsdl:[email protected] attribute
 * @since JAX-WS RI 2.1.6
 */
public @NotNull String getTransport() {
    return SOAPNamespaceConstants.TRANSPORT_HTTP;
}
 
示例21
/**
 * Returns wsdl:[email protected] attribute. Sub classes
 * are expected to override this method to provide their transport
 * attribute.
 *
 * @return wsdl:[email protected] attribute
 * @since JAX-WS RI 2.1.6
 */
public @NotNull String getTransport() {
    return SOAPNamespaceConstants.TRANSPORT_HTTP;
}
 
示例22
/**
 * Returns wsdl:[email protected] attribute. Sub classes
 * are expected to override this method to provide their transport
 * attribute.
 *
 * @return wsdl:[email protected] attribute
 * @since JAX-WS RI 2.1.6
 */
public @NotNull String getTransport() {
    return SOAPNamespaceConstants.TRANSPORT_HTTP;
}
 
示例23
/**
 * Returns wsdl:[email protected] attribute. Sub classes
 * are expected to override this method to provide their transport
 * attribute.
 *
 * @return wsdl:[email protected] attribute
 * @since JAX-WS RI 2.1.6
 */
public @NotNull String getTransport() {
    return SOAPNamespaceConstants.TRANSPORT_HTTP;
}
 
示例24
/**
 * Returns wsdl:[email protected] attribute. Sub classes
 * are expected to override this method to provide their transport
 * attribute.
 *
 * @return wsdl:[email protected] attribute
 * @since JAX-WS RI 2.1.6
 */
public @NotNull String getTransport() {
    return SOAPNamespaceConstants.TRANSPORT_HTTP;
}