Package org.ogce.gfac.context.impl

Examples of org.ogce.gfac.context.impl.ParameterContextImpl.addParameter()


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


        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

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