Package oracle.soa.api.invocation
Interface DirectConnection
public interface DirectConnection
Provides the ability to exchange messages over the direct binding.
In order to use a direct connection the composite service must be exposed via <binding.direct>
In order to use a direct connection the composite service must be exposed via <binding.direct>
Example:
DirectConnection conn = factory.createConnection(address, props);
Message<Element> request;
...
Message<Element> response = conn.request("sayHello", request);
- See Also:
-
Method Summary
-
Method Details
-
post
Post a one way message- Parameters:
operationName- the name of the operation to invokemessage- the request message- Throws:
InvocationException
-
request
<T> Message<T> request(String operationName, Message<T> message) throws InvocationException, FaultException Invoke a request/response operation- Parameters:
operationName- the name of the operation to invokemessage- the request message- Returns:
- the response message
- Throws:
InvocationExceptionFaultException
-
close
void close()Closes the connection, releasing any associated resources
-