1 package sample.axisversion; 2 3 import org.apache.axis2.om.OMAbstractFactory; 4 import org.apache.axis2.om.OMElement; 5 import org.apache.axis2.om.OMFactory; 6 import org.apache.axis2.om.OMNamespace; 7 8 25 26 31 public class Version { 32 33 public OMElement getVersion() { 34 OMFactory fac = OMAbstractFactory.getOMFactory(); 35 OMNamespace omNs = fac.createOMNamespace("http://localhost/my", "my"); 36 OMElement version = fac.createOMElement("Version", omNs); 37 version.addChild(fac.createText(version, "Hello I am Axis2 versionning service , My version is Axis2 M2 !! ")); 38 return version; 39 } 40 } 41 | Popular Tags |