Version: 1.1.1

org.inb.biomoby.client
Class MobyDispatch

java.lang.Object
  extended by org.inb.biomoby.client.MobyDispatch

public class MobyDispatch
extends Object

Author:
Dmitry Repchevsky

Nested Class Summary
static class MobyDispatch.MobyWSRFResource
           
 
Field Summary
static String NAMESPACE
           
 
Constructor Summary
MobyDispatch(Service mobyService)
           
MobyDispatch(Service mobyService, String user, String password)
           
 
Method Summary
 MobyMessage invoke(MobyMessage message)
          Method to synchronously invoke BioMoby service (provided in constructor)
 MobyDispatch.MobyWSRFResource invokeAsync(MobyMessage message)
           
static SOAPMessage marshal(String serviceName, Object object)
           
static SOAPMessage marshal(String serviceName, Object object, boolean isAsync)
           
static MobyMessage unmarshal(SOAPMessage message)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE

public static final String NAMESPACE
See Also:
Constant Field Values
Constructor Detail

MobyDispatch

public MobyDispatch(Service mobyService)

MobyDispatch

public MobyDispatch(Service mobyService,
                    String user,
                    String password)
Method Detail

invoke

public MobyMessage invoke(MobyMessage message)
                   throws Exception
Method to synchronously invoke BioMoby service (provided in constructor)

Parameters:
message - - message to be sent.
Returns:
message sent by the service.
Throws:
Exception

invokeAsync

public MobyDispatch.MobyWSRFResource invokeAsync(MobyMessage message)
                                          throws Exception
Throws:
Exception

marshal

public static SOAPMessage marshal(String serviceName,
                                  Object object)
                           throws SOAPException,
                                  IOException,
                                  JAXBException,
                                  XMLStreamException
Throws:
SOAPException
IOException
JAXBException
XMLStreamException

marshal

public static SOAPMessage marshal(String serviceName,
                                  Object object,
                                  boolean isAsync)
                           throws SOAPException,
                                  IOException,
                                  JAXBException,
                                  XMLStreamException
Throws:
SOAPException
IOException
JAXBException
XMLStreamException

unmarshal

public static MobyMessage unmarshal(SOAPMessage message)
                             throws JAXBException,
                                    IOException,
                                    XMLStreamException,
                                    SOAPException
Throws:
JAXBException
IOException
XMLStreamException
SOAPException

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010