public class PullResponseMessage extends EnumerationMessage
An example of how to use this class to understand a PullResponse same as WS-Enumeration spec:
PullResponseMessage response = (PullResponseMessage)request.send(ENDPOINT);
System.out.println(response.getEndOfSequence());
List items = response.getItems().getAny();
for (int i=0;i<items.size();i++) {
SOAPElement element = (SOAPElement)items.get(i);
System.out.println(element.getAttributeValue(ID_ATTR_NAME));
System.out.println(element.getTextContent());
}
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PULL_RESPONSE_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 |
|---|
PullResponseMessage()
The constructor for creating an PullResponseMessage
|
PullResponseMessage(javax.xml.soap.SOAPMessage msg)
The constructor for parsing an PullResponseMessage
|
PullResponseMessage(java.lang.String addressingNamespace) |
PullResponseMessage(java.lang.String addressingNamespace, boolean usingSOAP12) |
| Modifier and Type | Method and Description |
|---|---|
PullResponse |
getPullResponse() |
void |
setAction(java.lang.String action)
Overwrite setAction() so that actoin is always http://schemas.xmlsoap.org/ws/2004/09/enumeration/PullResponse
|
void |
setPullResponse(PullResponse pullResponse)
Set the PullResponse.
|
addRelatesTo, addRelatesTo, addRelatesTo, addRelatesTo, getAction, getAddressingNamespace, getFaultTo, getFrom, getMessageID, getRelatesTo, getReplyTo, getSOAPMessage, getTo, send, send, setFaultTo, setFaultTo, setFrom, setFrom, setMessageID, setReplyTo, setReplyTo, setSOAPVersion, setTo, setTopublic static final java.lang.String PULL_RESPONSE_ACTION_URI
public PullResponseMessage()
throws javax.xml.soap.SOAPException,
java.net.URISyntaxException
javax.xml.soap.SOAPExceptionjava.net.URISyntaxException
public PullResponseMessage(java.lang.String addressingNamespace)
throws javax.xml.soap.SOAPException,
java.net.URISyntaxException
javax.xml.soap.SOAPExceptionjava.net.URISyntaxException
public PullResponseMessage(java.lang.String addressingNamespace,
boolean usingSOAP12)
throws javax.xml.soap.SOAPException,
java.net.URISyntaxException
javax.xml.soap.SOAPExceptionjava.net.URISyntaxException
public PullResponseMessage(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 AddressingMessagejava.net.URISyntaxExceptionpublic PullResponse getPullResponse() throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPExceptionpublic void setPullResponse(PullResponse pullResponse) throws javax.xml.soap.SOAPException
pullResponse -javax.xml.soap.SOAPException