1 16 17 package org.apache.axis2.engine; 18 19 import org.apache.axis2.om.OMElement; 20 import org.apache.axis2.om.OMText; 21 22 25 26 public class Echo { 27 public Echo() { 28 } 29 30 public void echoVoid() { 31 System.out.println("echo Service Called"); 32 } 33 34 35 public OMElement echoOMElement(OMElement omEle) { 36 omEle.setLocalName(omEle.getLocalName() + "Response"); 37 return omEle; 38 } 39 40 public String echoString(String in) { 41 return in; 42 } 43 44 public int echoInt(int in) { 45 return in; 46 } 47 48 public OMElement echoMTOMtoBase64(OMElement omEle) 49 { 50 OMText omText = (OMText)omEle.getFirstChild(); 51 omText.doOptimize(false); 52 return omEle; 53 } 54 } | Popular Tags |