Package org.apache.ws.commons.schema

Examples of org.apache.ws.commons.schema.XmlSchemaType


        if (input != null) {
            Message msg = input.getMessage();
            Iterator i = msg.getOrderedParts(null).iterator();
            while (i.hasNext()) {
                Part part = (Part) i.next();
                XmlSchemaType schemaType = null;
                schemaType = lookUpType(part, xmlSchemaList);
                if (part.getElementName() != null) {
                    // its an anonymous type
                    if (schemaType instanceof XmlSchemaComplexType
                            && schemaType.getName() == null) {
                        Iterator it = getSchemaIterator(schemaType);
                        Iterator iter = getSchemaIterator(schemaType);
                        addParams(wsdlToCorbaBinding, inputs, it, iter);
                    } else {
                        XmlSchemaElement el = getElement(part, xmlSchemaList);
View Full Code Here


        if (input != null) {
            Message msg = input.getMessage();
            Iterator i = msg.getOrderedParts(null).iterator();
            while (i.hasNext()) {
                Part part = (Part) i.next();
                XmlSchemaType schemaType = null;
                schemaType = lookUpType(part, xmlSchemaList);
                if (part.getElementName() != null) {
                    XmlSchemaElement el = getElement(part, xmlSchemaList);
                    addParam(wsdlToCorbaBinding, schemaType, part.getName(),
                            part.getElementName(), el.isNillable(), inputs);
View Full Code Here

        if (output != null) {
            Message msg = output.getMessage();
            Iterator i = msg.getOrderedParts(null).iterator();
            while (i.hasNext()) {
                Part part = (Part) i.next();
                XmlSchemaType schemaType = null;
                schemaType = lookUpType(part, xmlSchemaList);

                // check if in input list
                if (part.getElementName() != null) {
                    if (schemaType instanceof XmlSchemaComplexType
                            && schemaType.getName() == null) {
                        Iterator it = getSchemaIterator(schemaType);
                        Iterator iter = getSchemaIterator(schemaType);
                        updateLists(wsdlToCorbaBinding, inputs, outputs, it,
                                iter);
                    } else {
View Full Code Here

        if (output != null) {
            Message msg = output.getMessage();
            Iterator i = msg.getOrderedParts(null).iterator();
            while (i.hasNext()) {
                Part part = (Part) i.next();
                XmlSchemaType schemaType = null;
                schemaType = lookUpType(part, xmlSchemaList);

                // check if in input list
                String mode = "out";
                ParamType paramtype = null;
View Full Code Here

        return null;
    }

    private static XmlSchemaType lookUpType(Part part,
            List<XmlSchema> xmlSchemaList) throws Exception {
        XmlSchemaType schemaType = null;

        Iterator i = xmlSchemaList.iterator();
        while (i.hasNext()) {
            XmlSchema xmlSchemaType = (XmlSchema) i.next();
View Full Code Here

    private static boolean inputPartsHaveNoDocWrapper(String opName,
            Operation operation, List<XmlSchema> xmlSchemaList)
        throws Exception {

        XmlSchemaType schemaType = null;
        Iterator i = null;
        Input input = operation.getInput();

        if (input != null) {
            Message msg = input.getMessage();
View Full Code Here

    private static boolean outputPartsHaveNoDocWrapper(String opName,
            Operation operation, List<XmlSchema> xmlSchemaList)
        throws Exception {

        XmlSchemaType schemaType = null;
        Iterator i = null;
        Output output = operation.getOutput();

        if (output != null) {
            Message msg = output.getMessage();
View Full Code Here

    private void addCorbaTypes(XmlSchema xmlSchemaTypes) throws Exception {
        XmlSchemaObjectTable objs = xmlSchemaTypes.getSchemaTypes();
        Iterator i = objs.getValues();
        CorbaTypeImpl corbaTypeImpl = null;
        while (i.hasNext()) {               
            XmlSchemaType type = (XmlSchemaType)i.next();
            boolean anonymous = WSDLTypes.isAnonymous(type.getName());
            corbaTypeImpl = helper.convertSchemaToCorbaType(type, type.getQName(), null,
                                                            null, anonymous);
            if (corbaTypeImpl != null) {
                if (corbaTypeImpl.getQName() != null) {
                    corbaTypeImpl.setQName(null);
                }
View Full Code Here

        }
    }   

    private CorbaTypeImpl convertFaultToCorbaType(XmlSchema xmlSchema, Fault fault) throws Exception {
        org.apache.schemas.yoko.bindings.corba.Exception corbaex = null;
        XmlSchemaType schemaType = null;
        String faultName = fault.getMessage().getQName().getLocalPart();

        int pos = faultName.indexOf("_exception.");

        if (pos != -1) {
            faultName = faultName.substring(pos + 11);
            faultName = faultName + "Exception";
        }

        QName name = helper.createQNameCorbaNamespace(faultName);
        Iterator parts = fault.getMessage().getParts().values().iterator();

        if (parts.hasNext()) {
            Part part = (Part)parts.next();
            schemaType = helper.lookUpType(part);

            if (schemaType != null && !helper.isSchemaTypeException(schemaType)) {
                corbaex = new org.apache.schemas.yoko.bindings.corba.Exception();
                corbaex.setName(schemaType.getName());
                corbaex.setQName(schemaType.getQName());
                CorbaTypeImpl corbaTypeImpl =
                    helper.convertSchemaToCorbaType(schemaType, part.getTypeName(), null, null, false);
                if (corbaTypeImpl != null) {
                    MemberType member = new MemberType();
                    member.setName(corbaTypeImpl.getQName().getLocalPart());
                    member.setIdltype(corbaTypeImpl.getQName());
                    corbaex.getMember().add(member);
                }
            } else {
                QName elementName = part.getElementName();
                QName schematypeName = helper.checkPrefix(schemaType.getQName());
                corbaex = createCorbaException(name, schematypeName, schemaType, elementName);
            }
        } else {           
            String msgStr = "Fault " + fault.getMessage().getQName().getLocalPart()
                 + " INCORRECT_FAULT_MSG.";
View Full Code Here

                                                             QName name,
                                                             QName idlType,
                                                             List<CorbaTypeMap> typeMaps,
                                                             ServiceInfo serviceInfo) {
        CorbaTypeImpl type = CorbaUtils.getCorbaType(idlType, typeMaps);
        XmlSchemaType schemaType = null;
        if (type != null) {
            schemaType = CorbaUtils.getXmlSchemaType(serviceInfo, type.getType());
        }
        return initializeObjectHandler(orb, name, idlType, schemaType, typeMaps, serviceInfo);
    }
View Full Code Here

TOP

Related Classes of org.apache.ws.commons.schema.XmlSchemaType

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.