Package org.apache.axis2.jaxws.description

Examples of org.apache.axis2.jaxws.description.ParameterDescription


                log.debug("   QName " + i + " = " + qNames.get(i));
            }
        }
        for (int pi=0; pi<params.length; pi++) {
            if (pi >= 0) {
                ParameterDescription pd = params[pi];
                if (log.isDebugEnabled()) {
                    log.debug("  ParameterDescription =" + pd.toString());
                    log.debug("  original firstIndex = " + firstIndex[pi]);
                    log.debug("  original lastIndex = " + lastIndex[pi]);
                }
                firstIndex[pi] = -1// Reset index
                lastIndex[pi] = -1// Reset index
                // Found a parameter that is expected in the body
                // Calculate its index by looking for an exact qname match
                for (int qi=0; qi<qNames.size(); qi++) {
                    QName qName = qNames.get(qi);
                    if (qName.getLocalPart().equals(pd.getPartName())) {
                        if (qName.getNamespaceURI().equals(pd.getTargetNamespace())) {
                            if (firstIndex[pi] < 0) {
                                if(log.isDebugEnabled()) {
                                    log.debug("    set first index to " + qi);
                                }
                                firstIndex[pi] = qi;
                            }
                            lastIndex[pi] = qi;
                        }
                    }
                }
                // Fallback to searching for just the part name
                if (firstIndex[pi] < 0) {
                    for (int qi=0; qi<qNames.size(); qi++) {
                        QName qName = qNames.get(qi);
                        if (qName.getLocalPart().equals(pd.getPartName())) {
                            if (firstIndex[pi] < 0) {
                                if(log.isDebugEnabled()) {
                                    log.debug("    fallback: set first index to " + qi);
                                }
                                firstIndex[pi] = qi;
View Full Code Here


     */
    private static void addPackagesFromParameters(TreeSet<String> set, OperationDescription opDesc) {
        ParameterDescription[] pDescs = opDesc.getParameterDescriptions();
        if (pDescs != null) {
            for (int i=0; i<pDescs.length; i++) {
                ParameterDescription pDesc = pDescs[i];
                if (pDesc != null) {
                    // Get the actual type of the parameter.
                    // For example if the parameter is Holder<A>, the A.class is
                    // returned.
                    // NOTE Generics are handled by the addPackagesFromParameters(Method..) method
                    Class paramClass = pDesc.getParameterActualType();
                    String pkg = getPackageFromClass(paramClass);
                    if (log.isDebugEnabled()) {
                        log.debug("Package from Parameter (" + paramClass + ") = " + pkg);
                    }
                    if (pkg != null) {
View Full Code Here

            // We want to use "by Java Type" unmarshalling for
            // allall non-JAXB objects
            Class[] javaTypes = new Class[pds.length];
            for (int i = 0; i < pds.length; i++) {
                ParameterDescription pd = pds[i];
                Class type = pd.getParameterActualType();
                if (MethodMarshallerUtils.isNotJAXBRootElement(type, marshalDesc)) {
                    javaTypes[i] = type;
                }
            }
View Full Code Here

            // We want to use "by Java Type" unmarshalling for
            // allall non-JAXB objects
            Class[] javaTypes = new Class[pds.length];
            for (int i = 0; i < pds.length; i++) {
                ParameterDescription pd = pds[i];
                Class type = pd.getParameterActualType();
                // If it is not a JAXB Root Element
                if (MethodMarshallerUtils.isNotJAXBRootElement(type, marshalDesc)) {
                    javaTypes[i] = type;
                }
            }
View Full Code Here

                                                                          false, false);

            // We want to use "by Java Type" marshalling for
            // all body elements and all non-JAXB objects
            for (PDElement pde : pdeList) {
                ParameterDescription pd = pde.getParam();
                Class type = pd.getParameterActualType();
                if (MethodMarshallerUtils.isNotJAXBRootElement(type, marshalDesc)) {
                    pde.setByJavaTypeClass(type);
                }
            }
View Full Code Here

                                                                          false, false);

            // We want to use "by Java Type" marshalling for
            // all body elements and all non-JAXB objects
            for (PDElement pde : pdeList) {
                ParameterDescription pd = pde.getParam();
                Class type = pd.getParameterActualType();
                if (MethodMarshallerUtils.isNotJAXBRootElement(type, marshalDesc)) {
                    pde.setByJavaTypeClass(type);
                }
            }
View Full Code Here

                                                        true); // use partName since this is rpc/lit

            // We want to use "by Java Type" marshalling for
            // all body elements and all non-JAXB objects
            for (PDElement pde : pdeList) {
                ParameterDescription pd = pde.getParam();
                Class type = pd.getParameterActualType();
                if (!pd.isHeader() ||
                        MethodMarshallerUtils.isNotJAXBRootElement(type, marshalDesc)) {
                    pde.setByJavaTypeClass(type);
                }
            }
View Full Code Here

            // We want to use "by Java Type" unmarshalling for
            // all body elements and all non-JAXB objects
            Class[] javaTypes = new Class[pds.length];
            for (int i = 0; i < pds.length; i++) {
                ParameterDescription pd = pds[i];
                Class type = pd.getParameterActualType();
                if (!pd.isHeader() ||
                        MethodMarshallerUtils.isNotJAXBRootElement(type, marshalDesc)) {
                    javaTypes[i] = type;
                }
            }
View Full Code Here

                                                        true);   // use partName since this is rpc/lit

            // We want to use "by Java Type" marshalling for
            // all body elements and all non-JAXB objects
            for (PDElement pde : pdeList) {
                ParameterDescription pd = pde.getParam();
                Class type = pd.getParameterActualType();
                if (!pd.isHeader() ||
                        MethodMarshallerUtils.isNotJAXBRootElement(type, marshalDesc)) {
                    pde.setByJavaTypeClass(type);
                }
            }
            // TODO Should we check for null output body values?  Should we check for null output header values ?
View Full Code Here

            // We want to use "by Java Type" unmarshalling for
            // all body elements and all non-JAXB objects
            Class[] javaTypes = new Class[pds.length];
            for (int i = 0; i < pds.length; i++) {
                ParameterDescription pd = pds[i];
                Class type = pd.getParameterActualType();
                if (!pd.isHeader() ||
                        MethodMarshallerUtils.isNotJAXBRootElement(type, marshalDesc)) {
                    javaTypes[i] = type;
                }
            }
View Full Code Here

TOP

Related Classes of org.apache.axis2.jaxws.description.ParameterDescription

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.