Search in sources :

Example 1 with IdlInterface

use of org.apache.cxf.tools.corba.common.idltypes.IdlInterface in project cxf by apache.

the class WSDLToIDLAction method createInterface.

private IdlType createInterface(org.apache.cxf.binding.corba.wsdl.Object obj, IdlScopeBase scope, String local) throws Exception {
    IdlType result = null;
    QName bqname = obj.getBinding();
    Binding binding = def.getBinding(bqname);
    if (binding != null) {
        IdlDefn defn = scope.lookup(local);
        if (defn instanceof IdlInterface) {
            return (IdlInterface) defn;
        } else if (defn == null) {
            try {
                IdlInterface storedIntf = intf;
                intf = IdlInterface.create(scope, local);
                scope.holdForScope(intf);
                collectIdlDefns(binding);
                scope.promoteHeldToScope();
                result = intf;
                intf = storedIntf;
            } catch (Exception ex) {
                String msgStr = "Interface type " + intf.fullName() + " not found.";
                org.apache.cxf.common.i18n.Message msg = new org.apache.cxf.common.i18n.Message(msgStr, LOG);
                throw new Exception(msg.toString());
            }
        }
    }
    return result;
}
Also used : Binding(javax.wsdl.Binding) QName(javax.xml.namespace.QName) IdlDefn(org.apache.cxf.tools.corba.common.idltypes.IdlDefn) IdlInterface(org.apache.cxf.tools.corba.common.idltypes.IdlInterface) IdlString(org.apache.cxf.tools.corba.common.idltypes.IdlString) IdlType(org.apache.cxf.tools.corba.common.idltypes.IdlType) IdlException(org.apache.cxf.tools.corba.common.idltypes.IdlException)

Aggregations

Binding (javax.wsdl.Binding)1 QName (javax.xml.namespace.QName)1 IdlDefn (org.apache.cxf.tools.corba.common.idltypes.IdlDefn)1 IdlException (org.apache.cxf.tools.corba.common.idltypes.IdlException)1 IdlInterface (org.apache.cxf.tools.corba.common.idltypes.IdlInterface)1 IdlString (org.apache.cxf.tools.corba.common.idltypes.IdlString)1 IdlType (org.apache.cxf.tools.corba.common.idltypes.IdlType)1