org.apache.axis2.clientapi
Class MessageSender

java.lang.Object
  extended byorg.apache.axis2.clientapi.MEPClient
      extended byorg.apache.axis2.clientapi.InOnlyMEPClient
          extended byorg.apache.axis2.clientapi.MessageSender

public class MessageSender
extends InOnlyMEPClient

Message Sender is the class simmiler to the Call, one that provides much simpler API to users to work with.


Field Summary
 
Fields inherited from class org.apache.axis2.clientapi.InOnlyMEPClient
messageInformationHeaders, senderTransport
 
Fields inherited from class org.apache.axis2.clientapi.MEPClient
doREST, doRestThroughPOST, isExceptionToBeThrownOnSOAPFault, mep, serviceContext, soapAction, soapVersionURI, wsaAction
 
Constructor Summary
MessageSender()
           
MessageSender(ServiceContext service)
          Service context of the Service this MessageSender handles, compare this with the Call, simpler method.
MessageSender(java.lang.String repo)
          This constrctor is to take repository as aragumnet and build the Configurationcontext using that
 
Method Summary
 void send(java.lang.String opName, OMElement toSend)
          Send the SOAP Message, the actual worker
 
Methods inherited from class org.apache.axis2.clientapi.InOnlyMEPClient
send, setFaultTo, setFrom, setMessageId, setRelatesTo, setReplyTo, setSenderTransport, setTo, setWsaAction
 
Methods inherited from class org.apache.axis2.clientapi.MEPClient
createDefaultSOAPEnvelope, engageModule, getSoapAction, inferTransport, prepareInvocation, prepareTheSOAPEnvelope, setDoREST, setExceptionToBeThrownOnSOAPFault, setRestThroughPOST, setSoapAction, setSoapVersionURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageSender

public MessageSender(ServiceContext service)
Service context of the Service this MessageSender handles, compare this with the Call, simpler method.

Parameters:
service -

MessageSender

public MessageSender()
              throws AxisFault

MessageSender

public MessageSender(java.lang.String repo)
              throws AxisFault
This constrctor is to take repository as aragumnet and build the Configurationcontext using that

Parameters:
repo - repository location
Throws:
AxisFault
Method Detail

send

public void send(java.lang.String opName,
                 OMElement toSend)
          throws AxisFault
Send the SOAP Message, the actual worker

Parameters:
opName -
toSend -
Throws:
AxisFault