Skip navigation links

Java API Reference for Oracle Infrastructure Web Services
11
Release 1 (11.1.1)

E10654-02


oracle.webservices.transfer
Class TransferGet

java.lang.Object
  extended by oracle.webservices.addressing.AddressingMessage
      extended by oracle.webservices.transfer.TransferMessage
          extended by 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

Field Summary
static String GET_ACTION_URI
           

 

Fields inherited from class oracle.webservices.addressing.AddressingMessage
ACTION_NOT_SUPPORTED_SUBCODE, DESTINATION_UNREACHABLE_SUBCODE, ENDPOINT_UNAVAILABLE_SUBCODE, INVALID_MESSAGE_INFORMATION_HEADER_SUBCODE, MESSAGE_INFORMATION_HEADER_REQUIRED_SUBCODE

 

Constructor Summary
TransferGet()
          The constructor for creating a Get request
TransferGet(SOAPMessage msg)
          The constructor for parsing a Get request
TransferGet(String addressingNamespace)
           
TransferGet(String addressingNamespace, boolean usingSOAP12)
           

 

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

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

GET_ACTION_URI

public static final String GET_ACTION_URI
See Also:
Constant Field Values

Constructor Detail

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

Method Detail

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

Copyright © 2006, 2009 Oracle. All Rights Reserved.