Examples of addNewMethod()


Examples of com.eviware.soapui.impl.rest.RestResource.addNewMethod()

        RestService restService1 = (RestService) project
                .addNewInterface(INTERFACE_NAME, RestServiceFactory.REST_TYPE);
        RestService restService2 = (RestService) project
                .addNewInterface(INTERFACE_NAME, RestServiceFactory.REST_TYPE);
        RestResource restResource = restService2.addNewResource(RESOURCE_NAME, PATH);
        restResource.addNewMethod(METHOD_NAME);
        Mockito.when(testCase.getParent()).thenReturn(project);

        TestStepConfig config = TestStepConfig.Factory.newInstance();
        RestRequestStepConfig configConfig = (RestRequestStepConfig) config.addNewConfig().changeType(RestRequestStepConfig.type);
        configConfig.setService(INTERFACE_NAME);
View Full Code Here

Examples of com.eviware.soapui.impl.rest.RestResource.addNewMethod()

    public void canRenameRestParameterInAncestorResource() throws Exception {
        RestResource parentResource = makeRestResource();
        String oldName = "the_original_name";
        parentResource.addProperty(oldName);
        RestResource childResource = parentResource.addNewChildResource("child", "child");
        RestMethod method = childResource.addNewMethod("Get Method");
        restRequest = new RestRequest(method, RestRequestConfig.Factory.newInstance(), false);

        parametersHolder = (RestRequestParamsPropertyHolder) restRequest.getParams();
        String newParameterName = "the_new_name";
        parametersHolder.renameProperty(oldName, newParameterName);
View Full Code Here

Examples of com.eviware.soapui.impl.rest.RestResource.addNewMethod()

    private RestResource createRestRequestModel(StatefulModelItemFactory modelItemFactory) throws SoapUIException {
        restRequest = modelItemFactory.makeRestRequest();
        restRequest.setMethod(RestRequestInterface.HttpMethod.GET);
        RestResource restResource = restRequest.getResource();
        restResource.getParams().addProperty(PARAMETER_NAME);
        restResource.addNewMethod(restRequest.getRestMethod().getName());
        RestMethodConfig restMethodConfig = restResource.getRestMethodList().get(0).getConfig();
        restMethodConfig.setMethod("GET");

        restService().addEndpoint(ENDPOINT);
        RestParamProperty restParamProperty = restRequest.getParams().getProperty(PARAMETER_NAME);
View Full Code Here

Examples of com.sun.research.wadl.x2006.x10.Resource.addNewMethod()

        resources.setBase(myCocktailPath);
       
        Resource resource = resources.addNewResource();
        resource.setPath("RESTService/mashupId="+mashupId);
       
        addMethod(resource.addNewMethod(), "json", mashup, "application/json");
       
        return applicationDocument.xmlText(new XmlOptions().setSavePrettyPrint());
    }
   
    private static void addResource(Resource resource, String format, String path, Mashup mashup, String mediaType) {
View Full Code Here

Examples of com.sun.research.wadl.x2006.x10.Resource.addNewMethod()

    }
   
    private static void addResource(Resource resource, String format, String path, Mashup mashup, String mediaType) {
        Resource resource3 = resource.addNewResource();
        resource3.setPath(path);
        addMethod(resource3.addNewMethod(), format, mashup, mediaType);
    }
   
    private static void addMethod(Method method, String format, Mashup mashup, String mediaType) {
        method.setName(mashup.getName());
        method.setId("mashup"+mashup.getId().toString()+format);
View Full Code Here

Examples of org.apache.airavata.schemas.gfac.PortTypeType.addNewMethod()

            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.addNewMethod()

        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.addNewMethod()

        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.addNewMethod()

            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.addNewMethod()

            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
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.