Skip navigation links
oracle.webservices.enumeration
Class PullResponseMessage
java.lang.Object
oracle.webservices.addressing.AddressingMessage
oracle.webservices.enumeration.EnumerationMessage
oracle.webservices.enumeration.PullResponseMessage
-
public class PullResponseMessage
- extends EnumerationMessage
This class helps to create/parse a SOAP envelope containing a WS-Enumeration PullResponse message.
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());
}
>/pre>
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 |
PULL_RESPONSE_ACTION_URI
public static final String PULL_RESPONSE_ACTION_URI
-
- See Also:
- Constant Field Values
PullResponseMessage
public PullResponseMessage()
throws SOAPException,
URISyntaxException
- The constructor for creating an PullResponseMessage
- Throws:
SOAPException
URISyntaxException
PullResponseMessage
public PullResponseMessage(String addressingNamespace)
throws SOAPException,
URISyntaxException
-
- Throws:
SOAPException
URISyntaxException
PullResponseMessage
public PullResponseMessage(String addressingNamespace,
boolean usingSOAP12)
throws SOAPException,
URISyntaxException
-
- Throws:
SOAPException
URISyntaxException
PullResponseMessage
public PullResponseMessage(SOAPMessage msg)
throws SOAPException
- The constructor for parsing an PullResponseMessage
- 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/PullResponse
-
- Overrides:
setAction
in class AddressingMessage
-
- Throws:
URISyntaxException
getPullResponse
public PullResponse getPullResponse()
throws SOAPException
-
- Returns:
- Returns the PullResponse.
- Throws:
SOAPException
setPullResponse
public void setPullResponse(PullResponse pullResponse)
throws SOAPException
- Set the PullResponse.
-
- Parameters:
pullResponse
-
- Throws:
SOAPException