public class EnumerateMessage extends EnumerationMessage
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 ....... }
EnumerateResponseMessage
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENUMERATE_ACTION_URI |
ACTION_NOT_SUPPORTED_SUBCODE, DESTINATION_UNREACHABLE_SUBCODE, ENDPOINT_UNAVAILABLE_SUBCODE, INVALID_MESSAGE_INFORMATION_HEADER_SUBCODE, MESSAGE_INFORMATION_HEADER_REQUIRED_SUBCODE
Constructor and Description |
---|
EnumerateMessage()
The constructor for creating an Enumerate message
|
EnumerateMessage(javax.xml.soap.SOAPMessage msg)
The constructor for parsing an Enumerate message
|
EnumerateMessage(java.lang.String addressingNamespace) |
EnumerateMessage(java.lang.String addressingNamespace, boolean usingSOAP12) |
Modifier and Type | Method and Description |
---|---|
Enumerate |
getEnumerate() |
void |
setAction(java.lang.String action)
Overwrite setAction() so that actoin is always http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate
|
void |
setEnumerate(Enumerate enumerate)
Set the enumerate.
|
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
public static final java.lang.String ENUMERATE_ACTION_URI
public EnumerateMessage() throws javax.xml.soap.SOAPException, java.net.URISyntaxException
javax.xml.soap.SOAPException
java.net.URISyntaxException
public EnumerateMessage(java.lang.String addressingNamespace) throws javax.xml.soap.SOAPException, java.net.URISyntaxException
javax.xml.soap.SOAPException
java.net.URISyntaxException
public EnumerateMessage(java.lang.String addressingNamespace, boolean usingSOAP12) throws javax.xml.soap.SOAPException, java.net.URISyntaxException
javax.xml.soap.SOAPException
java.net.URISyntaxException
public EnumerateMessage(javax.xml.soap.SOAPMessage msg) throws javax.xml.soap.SOAPException
msg
-javax.xml.soap.SOAPException
public final void setAction(java.lang.String action) throws java.net.URISyntaxException
setAction
in class AddressingMessage
java.net.URISyntaxException
public Enumerate getEnumerate() throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
public void setEnumerate(Enumerate enumerate) throws javax.xml.soap.SOAPException
enumerate
-javax.xml.soap.SOAPException