Package org.apache.axis.utils

Examples of org.apache.axis.utils.QName


       
        return ser;
    }

    public QName getTypeQName(Class _class) {
        QName qName = super.getTypeQName(_class);
        if ((qName == null) && (_class != null)) {
            if (_class.isArray()) qName = SOAP_ARRAY;
            if (List.class.isAssignableFrom(_class))
              qName = SOAP_ARRAY;
            if (_class == boolean.class) qName = XSD_BOOLEAN;
View Full Code Here


       
        addDeserializersFor(XSD_BOOLEAN, java.lang.Boolean.class, new BooleanDeserializerFactory());

        // handle the various datetime QNames...
        addDeserializerFactory(
            new QName(Constants.URI_1999_SCHEMA_XSD, "timeInstant"),
            java.util.Date.class,
            new DateSerializer.DateDeserializerFactory());

        addDeserializerFactory(
            new QName(Constants.URI_2000_SCHEMA_XSD, "timeInstant"),
            java.util.Date.class,
            new DateSerializer.DateDeserializerFactory());

        addDeserializerFactory(
            new QName(Constants.URI_2001_SCHEMA_XSD, "dateTime"),
            java.util.Date.class,
            new DateSerializer.DateDeserializerFactory());
       
        addDeserializerFactory(XSD_ANYTYPE, java.lang.Object.class, new ObjDeserializerFactory());
        addSerializer(java.lang.Object.class, XSD_ANYTYPE, new ObjSerializer());
View Full Code Here

    public String getEncodingStyle() {
        return getElement().getAttribute("encodingStyle");
    }
   
    public QName getQName() {
        return new QName(getElement().getAttribute("qName"), getElement());
    }
View Full Code Here

        throws SAXException
    {
        // If I'm the base class, try replacing myself with an
        // appropriate deserializer gleaned from type info.
        if (this.getClass().equals(Deserializer.class)) {
            QName type = context.getTypeFromAttributes(namespace,
                                                       localName,
                                                       attributes);
           
            if (category.isDebugEnabled()) {
                category.debug("Deser got type : " + type);
View Full Code Here

   
    public void outputImpl(SerializationContext context)
        throws IOException
    {
        context.registerPrefixForURI(prefix, namespaceURI);
        context.startElement(new QName(this.getNamespaceURI(),
                                       this.getName()),
                             attributes);

        if (fault.getFaultCode() != null) {
            // Do this BEFORE starting the element, so the prefix gets
View Full Code Here

       
        // This is a param.
        currentParam = new RPCParam(namespace, localName, null);
        call.addParam(currentParam);
       
        QName type = context.getTypeFromAttributes(namespace,
                                                   localName,
                                                   attributes);
        if (DEBUG_LOG) {
            System.err.println("Type from attrs was " + type);
        }
View Full Code Here

                                  Attributes attributes,
                                  DeserializationContext context)
        throws SAXException
    {
        SOAPHandler handler = null;
        QName qName = new QName(namespace, localName);
        Class cls = (Class)map.get(qName);

        if (cls != null) {
            try {
                handler = (SOAPHandler)cls.newInstance();
View Full Code Here

     * Test a method that reverses a data structure
     */
    public void testSerReverseData() throws Exception {
        BeanSerializer ser = new BeanSerializer(Data.class);
        DeserializerFactory dSerFactory = BeanSerializer.getFactory();
        QName qName = new QName("urn:foo", "Data");
        engine.registerTypeMapping(qName, Data.class, dSerFactory,
                                   ser);
       
        // invoke the service and verify the result
        String arg = "<arg0 xmlns:foo=\"urn:foo\" xsi:type=\"foo:Data\">";
View Full Code Here

     * Test a method that reverses a data structure
     */
    public void testReverseDataWithUntypedParam() throws Exception {
        BeanSerializer ser = new BeanSerializer(Data.class);
        DeserializerFactory dSerFactory = BeanSerializer.getFactory();
        QName qName = new QName("urn:foo", "Data");
        engine.registerTypeMapping(qName, Data.class, dSerFactory,
                                   ser);
       
        // invoke the service and verify the result
        String arg = "<arg0 xmlns:foo=\"urn:foo\">";
View Full Code Here

     * Test DOM round tripping
     */
    public void testArgAsDOM() throws Exception {
        BeanSerializer ser = new BeanSerializer(Data.class);
        DeserializerFactory dSerFactory = BeanSerializer.getFactory();
        QName qName = new QName("urn:foo", "Data");
        engine.registerTypeMapping(qName, Data.class, dSerFactory,
                                   ser);
       
        // invoke the service and verify the result
        String arg = "<arg0 xmlns:foo=\"urn:foo\">";
View Full Code Here

TOP

Related Classes of org.apache.axis.utils.QName

Copyright © 2018 www.massapicom. 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.