Examples of PortTypeType


Examples of org.apache.airavata.schemas.gfac.PortTypeType

            Random rand = new Random();
            int rdint = rand.nextInt(1000000);
            wsdlQName = new QName(nameSpaceURI, serviceName + "_" + date + "_" + rdint);
        }

        PortTypeType portType = serviceDesc.getPortType();
        MethodType method = portType.getMethod();
        QName portTypeName = serviceQName;

        String portName = portTypeName.getLocalPart();

        try {
View Full Code Here

Examples of org.apache.airavata.schemas.gfac.PortTypeType

            ServiceType type = service.getType().addNewService();
            ServiceName name = type.addNewServiceName();
            name.setStringValue(service.getType().getName());
            name.setTargetNamespace("http://schemas.airavata.apache.org/gfac/type");
            if(service.getType().getPortType() == null){
                PortTypeType portType = service.getType().addNewPortType();
                MethodType methodType = portType.addNewMethod();
                methodType.setMethodName("invoke");
            }else{
                MethodType method = service.getType().getPortType().getMethod();
                if (method == null) {
                    MethodType methodType = service.getType().getPortType().addNewMethod();
View Full Code Here

Examples of org.apache.airavata.schemas.gfac.PortTypeType

        ServiceDescription serv = new ServiceDescription();
        serv.getType().setName("SimpleEcho");
        serv.getType().addNewService();
        ServiceName name = serv.getType().getService().addNewServiceName();
        name.setStringValue("SimpleEcho");
        PortTypeType portType = serv.getType().addNewPortType();
        MethodType methodType = portType.addNewMethod();

        methodType.setMethodName("invoke");

        List<InputParameterType> inputList = new ArrayList<InputParameterType>();
        InputParameterType input = InputParameterType.Factory.newInstance();
View Full Code Here

Examples of org.apache.airavata.schemas.gfac.PortTypeType

public class WSDLGeneratorUtil {

    public static MethodType findOperationFromServiceDesc(String methodName, ServiceDescriptionType serviceDescType)
            throws GFacWSDLException {
        PortTypeType portType = serviceDescType.getPortType();
        if (serviceDescType.getPortType().getMethod().getMethodName().equals(methodName)) {
            serviceDescType.getPortType().getMethod();
        }

        if (isInbuiltOperation(methodName)) {
            MethodType builtInOperationType = portType.addNewMethod();
            builtInOperationType.setMethodName(methodName);
            return builtInOperationType;
        }

        throw new GFacWSDLException("Method name " + methodName + " not found");
View Full Code Here

Examples of org.apache.airavata.schemas.gfac.PortTypeType

            Random rand = new Random();
            int rdint = rand.nextInt(1000000);
            wsdlQName = new QName(nameSpaceURI, serviceName + "_" + date + "_" + rdint);
        }

        PortTypeType portType = serviceDesc.getPortType();
        MethodType method = portType.getMethod();
        QName portTypeName = serviceQName;

        String portName = portTypeName.getLocalPart();

        try {
View Full Code Here

Examples of org.apache.airavata.schemas.gfac.PortTypeType

            ServiceType type = service.getType().addNewService();
            ServiceName name = type.addNewServiceName();
            name.setStringValue(service.getType().getName());
            name.setTargetNamespace("http://schemas.airavata.apache.org/gfac/type");
           
            PortTypeType portType = service.getType().addNewPortType();
            MethodType methodType = portType.addNewMethod();
           
            methodType.setMethodName("invoke");
           
            WSDLGenerator generator = new WSDLGenerator();
            Hashtable table = generator.generateWSDL(null, null, null, service.getType(), true);           
View Full Code Here

Examples of org.apache.airavata.schemas.gfac.PortTypeType

            ServiceType type = service.getType().addNewService();
            ServiceName name = type.addNewServiceName();
            name.setStringValue(service.getType().getName());
            name.setTargetNamespace("http://schemas.airavata.apache.org/gfac/type");
            if(service.getType().getPortType() == null){
                PortTypeType portType = service.getType().addNewPortType();
                MethodType methodType = portType.addNewMethod();
                methodType.setMethodName("invoke");
            }else{
                MethodType method = service.getType().getPortType().getMethod();
                if (method == null) {
                    MethodType methodType = service.getType().getPortType().addNewMethod();
View Full Code Here

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

      ;
    }
    sn.setStringValue(serviceName.getLocalPart());
    sn.setTargetNamespace(serviceInfo.getObjectNamespace());

    PortTypeType pt;
    if (smt.getPortTypeArray() != null && smt.getPortTypeArray().length > 0) {
      pt = smt.getPortTypeArray(0);
    } else {
      pt = smt.addNewPortType();
    }

    ArrayList<Object> operations = serviceInfo.getOperations();

    for (int i = 0; i < operations.size(); i++) {
      MethodBean op = (MethodBean) operations.get(i);

      if (op == null) {
        throw new GfacException("Operation can not be Null", FaultCode.InvaliedLocalArgumnet);
      }

      MethodType[] methods = pt.getMethodArray();
      MethodType method = null;
      if (methods != null) {
        for (MethodType oldMethod : methods) {
          if (op.getMethodName().equals(oldMethod.getMethodName())) {
            method = oldMethod;
          }
        }
      }
      if (method == null) {
        method = pt.addNewMethod();
      }
      method.setMethodName(op.getMethodName());
      method.setMethodDescription(op.getMethodDescription());
      ApplicationType appType = method.getApplication();
      if (appType == null) {
View Full Code Here

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

      ;
    }
    sn.setStringValue(serviceName.getLocalPart());
    sn.setTargetNamespace(serviceInfo.getObjectNamespace());

    PortTypeType pt;
    if (smt.getPortTypeArray() != null && smt.getPortTypeArray().length > 0) {
      pt = smt.getPortTypeArray(0);
    } else {
      pt = smt.addNewPortType();
    }

    ArrayList<Object> operations = serviceInfo.getOperations();

    for (int i = 0; i < operations.size(); i++) {
      MethodBean op = (MethodBean) operations.get(i);

      if (op == null) {
        throw new GfacException("Operation can not be Null", FaultCode.InvaliedLocalArgumnet);
      }

      MethodType[] methods = pt.getMethodArray();
      MethodType method = null;
      if (methods != null) {
        for (MethodType oldMethod : methods) {
          if (op.getMethodName().equals(oldMethod.getMethodName())) {
            method = oldMethod;
          }
        }
      }
      if (method == null) {
        method = pt.addNewMethod();
      }
      method.setMethodName(op.getMethodName());
      method.setMethodDescription(op.getMethodDescription());
      ApplicationType appType = method.getApplication();
      if (appType == null) {
View Full Code Here

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

      ;
    }
    serviceName.setStringValue(serviceQName.getLocalPart());
    serviceName.setTargetNamespace(serviceInfo.getObjectNamespace());

    PortTypeType pt;
    if (serviceMapType.getPortTypeArray() != null
        && serviceMapType.getPortTypeArray().length > 0) {
      pt = serviceMapType.getPortTypeArray(0);
    } else {
      pt = serviceMapType.addNewPortType();
    }

    // ArrayList<MethodBean> operations = serviceInfo.getOperations();
    List<MethodBean> operations = new ArrayList<MethodBean>();
    operations.add(serviceInfo.getMethodBean());

    for (int i = 0; i < operations.size(); i++) {
      MethodBean op = (MethodBean) operations.get(i);

      if (op == null) {
        throw new GFacSchemaException("Operation can not be Null");
      }

      MethodType[] methods = pt.getMethodArray();
      MethodType method = null;
      if (methods != null) {
        for (MethodType oldMethod : methods) {
          if (op.getMethodName().equals(oldMethod.getMethodName())) {
            method = oldMethod;
          }
        }
      }
      if (method == null) {
        method = pt.addNewMethod();
      }
      method.setMethodName(op.getMethodName());
      method.setMethodDescription(op.getMethodDescription());
      ApplicationType appType = method.getApplication();
      if (appType == null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.