Examples of JAXRPCException


Examples of javax.xml.rpc.JAXRPCException

     * removing the registered DeserializerFactory
     */
    public void removeDeserializer(Class javaType, QName xmlType)
        throws JAXRPCException {
        if (javaType == null || xmlType == null) {
            throw new JAXRPCException(
                    Messages.getMessage(javaType == null ?
                                         "badJavaType" : "badXmlType"));
        }
        Pair pair = new Pair(javaType, xmlType);
        pair2DF.remove(pair);
View Full Code Here

Examples of javax.xml.rpc.JAXRPCException

    public void register(Class javaType, QName xmlType,
                         javax.xml.rpc.encoding.SerializerFactory sf,
                         javax.xml.rpc.encoding.DeserializerFactory dsf)
        throws JAXRPCException {       

        throw new JAXRPCException(
                Messages.getMessage("delegatedTypeMapping"));
    }
View Full Code Here

Examples of javax.xml.rpc.JAXRPCException

        return null;
    }

    public void removeSerializer(Class javaType, QName xmlType)
        throws JAXRPCException {
        throw new JAXRPCException(
                Messages.getMessage("delegatedTypeMapping"));
    }
View Full Code Here

Examples of javax.xml.rpc.JAXRPCException

                Messages.getMessage("delegatedTypeMapping"));
    }

    public void removeDeserializer(Class javaType, QName xmlType)
        throws JAXRPCException {
        throw new JAXRPCException(
                Messages.getMessage("delegatedTypeMapping"));
    }
View Full Code Here

Examples of javax.xml.rpc.JAXRPCException

     * @param name - Name of the property
     * @param value - Value of the property
     */
    public void _setProperty(String name, Object value) {
        if (name == null || value == null) {
            throw new JAXRPCException(
                    Messages.getMessage(name == null ?
                                         "badProp03" : "badProp04"));
        }
        else if (name.equals(Call.USERNAME_PROPERTY)) {
            if (!(value instanceof String)) {
                throw new JAXRPCException(
                        Messages.getMessage("badProp00", new String[] {
                        name, "java.lang.String", value.getClass().getName()}));
            }
            cachedUsername = (String) value;
        }
        else if (name.equals(Call.PASSWORD_PROPERTY)) {
            if (!(value instanceof String)) {
                throw new JAXRPCException(
                        Messages.getMessage("badProp00", new String[] {
                        name, "java.lang.String", value.getClass().getName()}));
            }
            cachedPassword = (String) value;
        }
        else if (name.equals(Stub.ENDPOINT_ADDRESS_PROPERTY)) {
            if (!(value instanceof String)) {
                throw new JAXRPCException(
                        Messages.getMessage("badProp00", new String[] {
                        name, "java.lang.String", value.getClass().getName()}));
            }
            try {
                cachedEndpoint = new URL ((String) value);
            }
            catch (MalformedURLException mue) {
                throw new JAXRPCException(mue.getMessage());
            }
        }
        else if (name.equals(Call.SESSION_MAINTAIN_PROPERTY)) {
            if (!(value instanceof Boolean)) {
                throw new JAXRPCException(
                        Messages.getMessage("badProp00", new String[]
                        {name,
                        "java.lang.Boolean",
                        value.getClass().getName()}));
            }
            maintainSessionSet = true;
            maintainSession = ((Boolean) value).booleanValue();
        }
        else if (name.startsWith("java.") || name.startsWith("javax.")) {
            throw new JAXRPCException(
                    Messages.getMessage("badProp05", name));
        }
        else {
            cachedProperties.put(name, value);
        }
View Full Code Here

Examples of javax.xml.rpc.JAXRPCException

            }
            else if (name.equals(Call.SESSION_MAINTAIN_PROPERTY)) {
                return maintainSessionSet ? new Boolean(maintainSession) : null;
            }
            else if (name.startsWith("java.") || name.startsWith("javax.")) {
                throw new JAXRPCException(
                        Messages.getMessage("badProp05", name));
            }
            else {
                return cachedProperties.get(name);
            }
View Full Code Here

Examples of javax.xml.rpc.JAXRPCException

                         javax.xml.rpc.encoding.DeserializerFactory dsf)
        throws JAXRPCException {

        // Don't allow anyone but init to modify us.
        if (doneInit) {
            throw new JAXRPCException(Messages.getMessage("fixedTypeMapping"));
        }
        else {
            super.register(javaType, xmlType, sf, dsf);
        }
    }
View Full Code Here

Examples of javax.xml.rpc.JAXRPCException

            super.register(javaType, xmlType, sf, dsf);
        }
    }
    public void removeSerializer(Class javaType, QName xmlType)
        throws JAXRPCException {
        throw new JAXRPCException(Messages.getMessage("fixedTypeMapping"));
    }
View Full Code Here

Examples of javax.xml.rpc.JAXRPCException

        throws JAXRPCException {
        throw new JAXRPCException(Messages.getMessage("fixedTypeMapping"));
    }
    public void removeDeserializer(Class javaType, QName xmlType)
        throws JAXRPCException {
        throw new JAXRPCException(Messages.getMessage("fixedTypeMapping"));
    }
View Full Code Here

Examples of javax.xml.rpc.JAXRPCException

                         javax.xml.rpc.encoding.DeserializerFactory dsf)
        throws JAXRPCException {

        // Don't allow anyone but init to modify us.
        if (doneInit) {
            throw new JAXRPCException(Messages.getMessage("fixedTypeMapping"));
        }
        else {
            super.register(javaType, xmlType, sf, dsf);
        }
    }
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.