1 17 package org.apache.servicemix.components.activesoap; 18 19 import org.codehaus.activesoap.transport.Invocation; 20 import org.codehaus.activesoap.util.XMLStreamFactory; 21 22 import javax.xml.stream.XMLStreamReader; 23 24 29 public class ASInvocation extends Invocation { 30 private ASTransport asTransport; 31 32 public ASInvocation(ASTransport transport, XMLStreamFactory streamFactory) { 33 super(transport, streamFactory); 34 this.asTransport = transport; 35 } 36 37 public void invokeOneWay() throws Exception { 38 String xml = getRequestText(); 39 asTransport.invokeOneWay(this, xml); 40 } 41 42 public XMLStreamReader invokeRequest() throws Exception { 43 String xml = getRequestText(); 44 return asTransport.invokeRequest(this, xml); 45 } 46 } 47 | Popular Tags |