Package org.ogce.schemas.gfac.documents

Examples of org.ogce.schemas.gfac.documents.MethodType


                return methods[i];
            }
        }

        if (isInbuiltOperation(operationName)) {
            MethodType method = portType.addNewMethod();
            method.setMethodName(operationName);
            return method;
        }

        throw new GfacException("Method name " + operationName + " not found",FaultCode.InvaliedLocalArgumnet);
    }
View Full Code Here


        anno.addChild(value);
        return builder.serializeToString(anno);
    }

    public static QName findApplcationName(ServiceMapType serviceMap) throws GfacException{
        MethodType method = GfacUtils.findOperationWithApplication(serviceMap);

        if (method == null) {
            throw new GfacException("None of the methods has application defined",FaultCode.InvaliedLocalArgumnet);
        }

        String applicationName = method.getApplication().getApplicationName().getStringValue();
        String applicationNameNs = method.getApplication().getApplicationName()
                .getTargetNamespace();
        return new QName(applicationNameNs, applicationName);
    }
View Full Code Here

TOP

Related Classes of org.ogce.schemas.gfac.documents.MethodType

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.