Package org.ogce.gfac.context.impl

Examples of org.ogce.gfac.context.impl.ParameterContextImpl


      ct.addSecurityContext("myproxy", gsiSecurityContext);     
     
      ct.setServiceName("{http://www.extreme.indiana.edu/namespaces/2004/01/gFac}Echo_Service");
     
      //parameter
      ParameterContextImpl x = new ParameterContextImpl();
      StringParameter parameter = new StringParameter();
      parameter.fromString("Hello");
      x.addParameter("echo", parameter.getTypeName(), parameter);
      ct.addMessageContext("input", x);
     
      PropertiesBasedServiceImpl service = new PropertiesBasedServiceImpl();
      service.init();
      service.execute(ct);
View Full Code Here


        OMElement element = (OMElement) iterator.next();
        String name = element.getQName().getLocalPart();
        String type = element.getAttribute(new QName("type")).getAttributeValue();
        String value = element.getText();
       
        ParameterContextImpl x = new ParameterContextImpl();
        x.addParameter(name, type, value)
        ct.addMessageContext("input", x)
      }

      if (service == null) {
        service = new PropertyServiceFactory().createService();
View Full Code Here

        context.getExecutionContext().setExectionModel(model);

        // output parameter
        //TODO type mapping
        if (serviceMap.getPortTypeArray(0).getMethodArray(0).getOutputParameterArray() != null) {
          ParameterContextImpl outtmp = new ParameterContextImpl();
          for (OutputParameterType output : serviceMap.getPortTypeArray(0).getMethodArray(0).getOutputParameterArray()) {
            outtmp.addParameter(output.getParameterName(), output.getParameterType().toString(), new StringParameter());
          }
          context.addMessageContext(OUTPUT_MESSAGE_CONTEXT, outtmp);
        }

      } catch (XmlException e) {
View Full Code Here

TOP

Related Classes of org.ogce.gfac.context.impl.ParameterContextImpl

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.