Package org.apache.ws.commons.om

Examples of org.apache.ws.commons.om.OMFactory


        </Dependencies>
    </axis2:Module>
</apache:Project>

        */
        final OMFactory fac = OMAbstractFactory.getOMFactory();
        final OMNamespace axis2NS = fac.createOMNamespace("http://ws.apache.org/namespaces/axis2", "axis2");


        class Dependencies implements ADBBean {

            String[] dependencies;
View Full Code Here


    private void writeSchemas(Element element) throws XMLStreamException {
        writer.flush();
        String schemaTypes = DOM2Writer.nodeToString(element);
        XMLStreamReader xmlReader = XMLInputFactory.newInstance().createXMLStreamReader(new
                ByteArrayInputStream(schemaTypes.getBytes()));
        OMFactory fac = OMAbstractFactory.getOMFactory();

        StAXOMBuilder staxOMBuilder = new StAXOMBuilder(fac, xmlReader);
        OMElement schemaElement = staxOMBuilder.getDocumentElement();
        schemaElement.serialize(writer);
    }
View Full Code Here

        }
        return operation;
    }

    public static OMElement getParameter(String name, String value, boolean locked) {
        OMFactory fac = OMAbstractFactory.getOMFactory();
        OMElement parameter = fac.createOMElement("parameter", null);
        parameter.addAttribute("name", name, null);
        parameter.addAttribute("locked", Boolean.toString(locked), null);
        parameter.setText(value);
        return parameter;
    }
View Full Code Here

    if (msgContext!=null)
      System.out.println ("ServiceGroupContextID:" + msgContext.getServiceGroupContextId());
    else
      System.out.println ("Message Context is null");
   
    OMFactory fac = OMAbstractFactory.getOMFactory();
    OMNamespace namespace = fac.createOMNamespace("http://axis2/test/namespace1","ns1");
   
    OMElement resultElem = fac.createOMElement("result",namespace);
    resultElem.setText(Integer.toString(result ));
   
    msgContext.getServiceGroupContext().setProperty(Constants.CALCULATOR_PREVIOUS_KEY,Integer.toString(result));
    return resultElem;
  }
View Full Code Here

    if (msgContext!=null)
      System.out.println ("ServiceGroupContextID:" + msgContext.getServiceGroupContextId());
    else
      System.out.println ("Message Context is null");
   
    OMFactory fac = OMAbstractFactory.getOMFactory();
    OMNamespace namespace = fac.createOMNamespace("http://axis2/test/namespace1","ns1");
   
    OMElement resultElem = fac.createOMElement("result",namespace);
    resultElem.setText(Integer.toString(result ));
   
    msgContext.getServiceGroupContext().setProperty(Constants.CALCULATOR_PREVIOUS_KEY,Integer.toString(result));
    return resultElem;
  }
View Full Code Here

    if (msgContext!=null)
      System.out.println ("ServiceGroupContextID:" + msgContext.getServiceGroupContextId());
    else
      System.out.println ("Message Context is null");
   
    OMFactory fac = OMAbstractFactory.getOMFactory();
    OMNamespace namespace = fac.createOMNamespace("http://axis2/test/namespace1","ns1");
   
    OMElement resultElem = fac.createOMElement("result",namespace);
    resultElem.setText(Integer.toString(result ));
   
    msgContext.getServiceGroupContext().setProperty(Constants.CALCULATOR_PREVIOUS_KEY,Integer.toString(result));
    return resultElem;
  }
View Full Code Here

    if (msgContext!=null)
      System.out.println ("ServiceGroupContextID:" + msgContext.getServiceGroupContextId());
    else
      System.out.println ("Message Context is null");
   
    OMFactory fac = OMAbstractFactory.getOMFactory();
    OMNamespace namespace = fac.createOMNamespace("http://axis2/test/namespace1","ns1");
   
    OMElement resultElem = fac.createOMElement("result",namespace);
    resultElem.setText(Integer.toString(result ));
   
    msgContext.getServiceGroupContext().setProperty(Constants.CALCULATOR_PREVIOUS_KEY,Integer.toString(result));
    return resultElem;
  }
View Full Code Here

    if (msgContext!=null)
      System.out.println ("ServiceGroupContextID:" + msgContext.getServiceGroupContextId());
    else
      System.out.println ("Message Context is null");
   
    OMFactory fac = OMAbstractFactory.getOMFactory();
    OMNamespace namespace = fac.createOMNamespace("http://axis2/test/namespace1","ns1");
   
    OMElement resultElem = fac.createOMElement("result",namespace);
    resultElem.setText(Integer.toString(result ));
   
    msgContext.getServiceGroupContext().setProperty(Constants.CALCULATOR_PREVIOUS_KEY,Integer.toString(result));
    return resultElem;
  }
View Full Code Here

    if (msgContext!=null)
      System.out.println ("ServiceGroupContextID:" + msgContext.getServiceGroupContextId());
    else
      System.out.println ("Message Context is null");
   
    OMFactory fac = OMAbstractFactory.getOMFactory();
    OMNamespace namespace = fac.createOMNamespace("http://axis2/test/namespace1","ns1");
   
    OMElement resultElem = fac.createOMElement("result",namespace);
    resultElem.setText(Integer.toString(result ));
   
    msgContext.getServiceGroupContext().setProperty(Constants.CALCULATOR_PREVIOUS_KEY,Integer.toString(result));
    return resultElem;
  }
View Full Code Here

        }
    }


    private static OMElement getPayload() {
        OMFactory fac = OMAbstractFactory.getOMFactory();
        OMNamespace omNs = fac.createOMNamespace(
                "tcp://localhost:8080/axis2/services/MyService", "example1");
        OMElement method = fac.createOMElement("echo", omNs);
        OMElement value = fac.createOMElement("Text", omNs);
        value.addChild(fac.createText(value, "Axis2 Echo String "));
        method.addChild(value);

        return method;
    }
View Full Code Here

TOP

Related Classes of org.apache.ws.commons.om.OMFactory

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.