public final class XMLRPCService extends RPCService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_DEFAULT_FAULTDOC_FORMAT
Indicates which document protocol is used if no fault document is
defined.
|
static java.lang.String |
PROPERTY_THROW_JAVA_EXCEPTION
Indicates if a java exception is thrown or a fault document is returned.
|
RELIABLE_AUTO_COMMIT, RELIABLE_CLIENT_COMMIT, RELIABLE_OFF
DEFAULT_WAITTIME
Constructor and Description |
---|
XMLRPCService(Broker broker,
java.lang.String serverAddr,
java.io.InputStream isXmmFile)
Creates an XMLRPCService object.
|
XMLRPCService(Broker broker,
java.lang.String serverAddr,
java.lang.String sXmmFile)
Creates an XMLRPCService object.
|
XMLRPCService(Broker broker,
java.lang.String serverAddr,
java.lang.String sXmmFile,
java.io.InputStream isXmmFile)
Creates an XMLRPCService object.
|
XMLRPCService(java.lang.String sXmmFile)
Create an XMLRPCService object.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
invokeXML(byte[] xmlDocument)
Builds an RPC from XML input and returns result as XML output.
|
void |
invokeXML(java.io.InputStream inputStream,
java.io.OutputStream outputStream)
Builds an RPC from XML input and returns result as XML output.
|
void |
invokeXML(java.io.Reader xmlDocReader,
java.io.Writer xmlDocWriter)
Builds an RPC from XML input and returns result as XML output.
|
java.lang.String |
invokeXML(java.lang.String xmlDocument)
Builds an RPC from XML input and returns result as XML output.
|
void |
invokeXML(javax.xml.stream.XMLStreamReader xmlStreamReader,
javax.xml.stream.XMLStreamWriter xmlStreamWriter)
Builds an RPC from XML input and returns result as XML output.
|
void |
setUserProperty(java.lang.String key,
java.lang.String value)
Sets user-specific properties for this XMLRPCService object.
Defined Values: PROPERTY_THROW_JAVA_EXCEPTION yes|no PROPERTY_DEFAULT_FAULTDOC_FORMAT xml|soap PROPERTY_DEFAULT_XMLSPACE preserve |
closeConversation, closeConversationCommit, getConversation, getMessageID, getNaturalLogon, getReliable, getRPCPassword, getRPCUserId, getStatusOfMessage, onEnter, onException, onLeave, onRetry, ping, reliableCommit, reliableRollback, setBroker, setConversation, setLibraryName, setNaturalLogon, setReliable, setRPCPassword, setRPCUserId, setServerAddress
cancelallConversations, deregister, deregisterImmediate, endallConversations, getBroker, getCharacterEncoding, getDefaultWaittime, getMaxReceiveLen, getServerClass, getServerName, getServiceName, isGeneric, receive, receive, receiveAny, receiveAttachInfo, receiveOld, register, registerAttach, replyError, send, sendReceive, sendReceive, setDefaultWaittime, setMaxReceiveLen, toString
public static final java.lang.String PROPERTY_THROW_JAVA_EXCEPTION
public static final java.lang.String PROPERTY_DEFAULT_FAULTDOC_FORMAT
public XMLRPCService(java.lang.String sXmmFile)
sXmmFile
- The name of the XMM contains the information to map an XML
document to an EntireX RPC and vice versa.public XMLRPCService(Broker broker, java.lang.String serverAddr, java.lang.String sXmmFile)
broker
- The Broker to run the service.serverAddr
- The RPC server address.sXmmFile
- The name of the XMM contains the information to map an XML
document to an EntireX RPC and vice versa.public XMLRPCService(Broker broker, java.lang.String serverAddr, java.io.InputStream isXmmFile)
broker
- The Broker to run the service.serverAddr
- The RPC server address.isXmmFile
- The inputstream of the XMM contains the information to map an XML
document to an EntireX RPC and vice versa.public XMLRPCService(Broker broker, java.lang.String serverAddr, java.lang.String sXmmFile, java.io.InputStream isXmmFile)
broker
- The Broker to run the service.serverAddr
- The RPC server address.sXmmFile
- The name of the XMM contains the information to map an XML
document to an EntireX RPC and vice versa.isXmmFile
- The inputstream of specified XMM contains the information to map an XML
document to an EntireX RPC and vice versa.public void setUserProperty(java.lang.String key, java.lang.String value)
key
- Name of property to set.value
- Value of property to set.public java.lang.String invokeXML(java.lang.String xmlDocument) throws BrokerException, XMLException
xmlDocument
- The requesting XML document as string containing the RPC
input data information.BrokerException
XMLException
public byte[] invokeXML(byte[] xmlDocument) throws BrokerException, XMLException
xmlDocument
- The requesting XML document as byte array containing the RPC
input data information.BrokerException
XMLException
public void invokeXML(java.io.Reader xmlDocReader, java.io.Writer xmlDocWriter) throws BrokerException, XMLException
xmlDocReader
- A reader object from where the input XML data can be
retrieved.xmlDocWriter
- A writer object the XML output can be written to after a
successful RPC.BrokerException
XMLException
public void invokeXML(javax.xml.stream.XMLStreamReader xmlStreamReader, javax.xml.stream.XMLStreamWriter xmlStreamWriter) throws XMLException, BrokerException
xmlStreamReader
- The requesting XML document containing the RPC
input data information.xmlStreamWriter
- containg the resulting XML documentBrokerException
XMLException
public void invokeXML(java.io.InputStream inputStream, java.io.OutputStream outputStream) throws BrokerException, XMLException
inputStream
- An InputStream object from where the input XML data can be
retrieved.outputStream
- A OutputStream object where the XML output can be written to
after a successful RPC.BrokerException
XMLException