Package org.apache.axis.utils

Examples of org.apache.axis.utils.QName


        return element.getAttribute("encodingStyle");
    }
   
    public QName getQName() {
        if (qname == null) {
            qname = new QName(element.getAttribute("qname"), element);
        }
        return qname;
    }
View Full Code Here


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

        // collect the information about the operations
        NodeList nl = getElement().getElementsByTagNameNS(WSDDConstants.WSDD_NS, "operation");
        for (int n = 0; n < nl.getLength(); n++) {
            Element op = (Element)nl.item(n);
            provider.addOperation(op.getAttribute("name"),
                                  new QName(op.getAttribute("qName"),op));
        }
       
        return provider;
    }
View Full Code Here

        Debug.setDebugLevel( opts.isFlagSet( 'd' ) );
        call = new ServiceClient(opts.getURL());
        call.set(HTTPTransport.ACTION, "http://www.soapinterop.org/Bid");

        // register the PurchaseOrder class
        QName poqn = new QName("http://www.soapinterop.org/Bid",
                               "PurchaseOrder");
        Class cls = PurchaseOrder.class;
        call.addSerializer(cls, poqn, new BeanSerializer(cls));
        call.addDeserializerFactory(poqn, cls, BeanSerializer.getFactory());

        // register the Address class
        QName aqn = new QName("http://www.soapinterop.org/Bid", "Address");
        cls = Address.class;
        call.addSerializer(cls, aqn, new BeanSerializer(cls));
        call.addDeserializerFactory(aqn, cls, BeanSerializer.getFactory());

        // register the LineItem class
        QName liqn = new QName("http://www.soapinterop.org/Bid", "LineItem");
        cls = LineItem.class;
        call.addSerializer(cls, liqn, new BeanSerializer(cls));
        call.addDeserializerFactory(liqn, cls, BeanSerializer.getFactory());

        try {
View Full Code Here

    /**
     * Execute the tests
     */
    public void execute() throws Exception {
        // register the SOAPStruct class
        QName ssqn = new QName("http://soapinterop.org/xsd", "SOAPStruct");
        Class cls = SOAPStruct.class;
        call.addSerializer(cls, ssqn, new BeanSerializer(cls));
        call.addDeserializerFactory(ssqn, cls, BeanSerializer.getFactory());

        // execute the tests
View Full Code Here

   
    public void serialize(QName qname, Attributes attributes,
                          Object value, SerializationContext context)
        throws IOException
    {
        QName xsitype = null;
        Class type = null;
       
        if (value != null) {
            type = value.getClass();
        } else {
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);
           
            // We know we're deserializing, and we can't seem to figure
            // out a type... so let's give them a string.
View Full Code Here

        params.addElement(param);
    }

    protected void outputImpl(SerializationContext context) throws Exception
    {
        context.startElement(new QName(namespaceURI,name),attributes);
        for (int i = 0; i < params.size(); i++) {
            ((RPCParam)params.elementAt(i)).serialize(context);
        }
        context.endElement();
    }
View Full Code Here

                }
                env = respMsg.getAsSOAPEnvelope();
                for (int i = 0; i < misunderstoodHeaders.size(); i++) {
                    SOAPHeader badHeader = (SOAPHeader)misunderstoodHeaders.
                                                                elementAt(i);
                    QName badQName = new QName(badHeader.getNamespaceURI(),
                                               badHeader.getName());
                    SOAPHeader newHeader = new SOAPHeader(
                                               Constants.URI_SOAP12_FAULT_NS,
                                               Constants.ELEM_MISUNDERSTOOD);
                    newHeader.addAttribute(null,
View Full Code Here

    {
        if (qNameAttrs == null)
            qNameAttrs = new Vector();
       
        QNameAttr attr = new QNameAttr();
        attr.name = new QName(namespace, localName);
        attr.value = value;
       
        qNameAttrs.addElement(attr);
    }
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.