Skip navigation links
oracle.webservices.enumeration
Class EnumerateMessage
java.lang.Object
oracle.webservices.addressing.AddressingMessage
oracle.webservices.enumeration.EnumerationMessage
oracle.webservices.enumeration.EnumerateMessage
-
public class EnumerateMessage
- extends EnumerationMessage
This class helps to create/parse a SOAP envelope containing a WS-Enumeration Enumerate message. It also provides a send() method to send itself to the specified endpoint.
An example of how to use this class to create an Enumerate request same as WS-Enumeration spec and send it to the specified endpoint:
EnumerateMessage request = new EnumerateMessage();
request.setReplyTo(REPLYTO);
request.setTo(TO);
request.setMessageID(UUID);
Enumerate enumerate = new Enumerate();
enumerate.setExpires(EXPIRES);
request.setEnumerate(enumerate);
try {
EnumerateResponseMessage response = (EnumerateResponseMessage)request.send(ENDPOINT);
} catch (AddressingException e) {
// AddressingException indicates the response is a fault message
} catch (RuntimeException e) {
// unexpected response, not EnumerateResponseMessage or fault .......
} catch (SOAPException e) {
// some other error .......
}
- See Also:
EnumerateResponseMessage
Methods inherited from class oracle.webservices.addressing.AddressingMessage |
addRelatesTo, addRelatesTo, addRelatesTo, addRelatesTo, getAction, getAddressingNamespace, getFaultTo, getFrom, getMessageID, getRelatesTo, getReplyTo, getSOAPMessage, getTo, send, send, setFaultTo, setFaultTo, setFrom, setFrom, setMessageID, setReplyTo, setReplyTo, setSOAPVersion, setTo, setTo |
ENUMERATE_ACTION_URI
public static final String ENUMERATE_ACTION_URI
-
- See Also:
- Constant Field Values
EnumerateMessage
public EnumerateMessage()
throws SOAPException,
URISyntaxException
- The constructor for creating an Enumerate message
- Throws:
SOAPException
URISyntaxException
EnumerateMessage
public EnumerateMessage(String addressingNamespace)
throws SOAPException,
URISyntaxException
-
- Throws:
SOAPException
URISyntaxException
EnumerateMessage
public EnumerateMessage(String addressingNamespace,
boolean usingSOAP12)
throws SOAPException,
URISyntaxException
-
- Throws:
SOAPException
URISyntaxException
EnumerateMessage
public EnumerateMessage(SOAPMessage msg)
throws SOAPException
- The constructor for parsing an Enumerate message
- Parameters:
msg
-
- Throws:
SOAPException
setAction
public final void setAction(String action)
throws URISyntaxException
- Overwrite setAction() so that actoin is always http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate
-
- Overrides:
setAction
in class AddressingMessage
-
- Throws:
URISyntaxException
getEnumerate
public Enumerate getEnumerate()
throws SOAPException
-
- Returns:
- Returns the enumerate.
- Throws:
SOAPException
setEnumerate
public void setEnumerate(Enumerate enumerate)
throws SOAPException
- Set the enumerate.
-
- Parameters:
enumerate
-
- Throws:
SOAPException
Skip navigation links