1 16 17 package test.providers; 18 19 import org.apache.axis.*; 20 import org.apache.axis.handlers.soap.SOAPService; 21 import org.apache.axis.message.SOAPEnvelope; 22 import org.apache.axis.providers.BasicProvider; 23 24 27 public class DummyProvider extends BasicProvider { 28 29 public void initServiceDesc( 30 SOAPService service, 31 MessageContext msgContext) 32 throws AxisFault { 33 } 34 35 public void invoke(MessageContext msgContext) 36 throws AxisFault { 37 Message requestMessage = msgContext.getRequestMessage(); 38 SOAPEnvelope requestEnvelope = 39 requestMessage.getSOAPEnvelope(); 40 41 Message responseMessage = new Message(requestEnvelope); 42 msgContext.setResponseMessage(responseMessage); 43 } 44 } 45 | Popular Tags |