Skip navigation links
oracle.webservices.enumeration
Class PullMessage
java.lang.Object
oracle.webservices.addressing.AddressingMessage
oracle.webservices.enumeration.EnumerationMessage
oracle.webservices.enumeration.PullMessage
-
public class PullMessage
- extends EnumerationMessage
This class helps to create/parse a SOAP envelope containing a WS-Enumeration Pull message.
An example of how to use this class to create a Pull request same as WS-Enumeration spec and send it to the specified endpoint:
PullMessage request = new PullMessage();
request.setReplyTo(REPLYTO);
request.setTo(TO);
request.setMessageID(UUID);
Pull pull = new Pull();
pull.setMaxTime(DatatypeFactory.newInstance().newDuration("P30D"));
pull.setMaxElements(new BigInteger("10"));
EnumerationContextType context = new EnumerationContextType();
context.getContent().add("123");
pull.setEnumerationContext(context);
request.setPull(pull);
try {
PullResponseMessage response = (PullResponseMessage)request.send(ENDPOINT);
} catch (AddressingException e) {
// AddressingException indicates the response is a fault message
} catch (RuntimeException e) {
// unexpected response, not PullResponseMessage or fault .......
} catch (SOAPException e) {
// some other error .......
}
- See Also:
PullResponseMessage
Method Summary |
Pull |
getPull()
|
void |
setAction(String action)
Overwrite setAction() so that actoin is always http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull |
void |
setPull(Pull pull)
Set the Pull. |
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_ACTION_URI
public static final String PULL_ACTION_URI
-
- See Also:
- Constant Field Values
PullMessage
public PullMessage()
throws SOAPException,
URISyntaxException
- The constructor for creating an PullMessage
- Throws:
SOAPException
URISyntaxException
PullMessage
public PullMessage(String addressingNamespace)
throws SOAPException,
URISyntaxException
-
- Throws:
SOAPException
URISyntaxException
PullMessage
public PullMessage(String addressingNamespace,
boolean usingSOAP12)
throws SOAPException,
URISyntaxException
-
- Throws:
SOAPException
URISyntaxException
PullMessage
public PullMessage(SOAPMessage msg)
throws SOAPException
- The constructor for parsing an PullMessage
- 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/Pull
-
- Overrides:
setAction
in class AddressingMessage
-
- Throws:
URISyntaxException
getPull
public Pull getPull()
throws SOAPException
-
- Returns:
- Returns the Pull.
- Throws:
SOAPException
setPull
public void setPull(Pull pull)
throws SOAPException
- Set the Pull.
-
- Parameters:
pull
-
- Throws:
SOAPException
Skip navigation links