Skip navigation links
oracle.webservices.transfer
Class TransferGet
java.lang.Object
oracle.webservices.addressing.AddressingMessage
oracle.webservices.transfer.TransferMessage
oracle.webservices.transfer.TransferGet
-
public class TransferGet
- extends TransferMessage
This class helps to create/parse a SOAP envelope containing a Get request. It also provides a send() method to send itself to the specified endpoint.
An example of how to use this class to create a Get request same as WS-Transfer spec and send it to the specified endpoint:
TransferGet g = new TransferGet();
g.setReplyTo(REPLYTO);
g.setTo(TO);
g.setMessageID(UUID);
SOAPHeader header = g.getSOAPMessage().getSOAPHeader();
SOAPHeaderElement headerElement = header.addHeaderElement(customerID);
headerElement.addTextNode(ID);
headerElement = header.addHeaderElement(region);
headerElement.addTextNode(REGION);
try {
TransferGetResponse response = (TransferGetResponse)g.send(ENDPOINT);
} catch (AddressingException e) {
// AddressingException indicates the response is a fault message
// using the standard fault codes defined in WS-Addressing (e.g., wsa:ActionNotSupported)
} catch (RuntimeException e) {
// unexpected response, not GetResponse or fault .......
} catch (SOAPException e) {
// some other error .......
}
- See Also:
TransferGetResponse
Method Summary |
void |
setAction(String action)
Overwrite setAction() so that actoin is always http://schemas.xmlsoap.org/ws/2004/09/transfer/Get |
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 |
GET_ACTION_URI
public static final String GET_ACTION_URI
-
- See Also:
- Constant Field Values
TransferGet
public TransferGet()
throws SOAPException,
URISyntaxException
- The constructor for creating a Get request
- Throws:
SOAPException
URISyntaxException
TransferGet
public TransferGet(String addressingNamespace)
throws SOAPException,
URISyntaxException
-
- Throws:
SOAPException
URISyntaxException
TransferGet
public TransferGet(String addressingNamespace,
boolean usingSOAP12)
throws SOAPException,
URISyntaxException
-
- Throws:
SOAPException
URISyntaxException
TransferGet
public TransferGet(SOAPMessage msg)
throws SOAPException
- The constructor for parsing a Get request
- 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/transfer/Get
-
- Overrides:
setAction
in class AddressingMessage
-
- Throws:
URISyntaxException
Skip navigation links