Skip navigation links
oracle.webservices.transfer
Class TransferGetResponse
java.lang.Object
oracle.webservices.addressing.AddressingMessage
oracle.webservices.transfer.TransferMessage
oracle.webservices.transfer.TransferGetResponse
-
public class TransferGetResponse
- extends TransferMessage
This class helps to create/parse a SOAP envelope containing a GetResponse.
An example of how to use this class to understand a GetResponse same as WS-Transfer spec:
TransferGetResponse gr = getRequest.send(ENDPOINT);
System.out.println(gr.getAction().getURI().toString());
System.out.println(gr.getTo().getURI().toString());
System.out.println(gr.getMessageID().getURI().toString());
SOAPBody body2 = gr.getSOAPMessage().getSOAPBody();
Iterator<SOAPElement> it = body2.getChildElements(customer);
SOAPElement customerElement = it.next();
it = customerElement.getChildElements(first);
SOAPElement customerIDElement = it.next();
System.out.println(customerIDElement.getTextContent());
it = customerElement.getChildElements(last);
SOAPElement regionElement = it.next();
System.out.println(regionElement.getTextContent());
Method Summary |
void |
setAction(String action)
Overwrite setAction() so that actoin is always http://schemas.xmlsoap.org/ws/2004/09/transfer/GetResponse. |
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_RESPONSE_ACTION_URI
public static final String GET_RESPONSE_ACTION_URI
-
- See Also:
- Constant Field Values
TransferGetResponse
public TransferGetResponse()
throws SOAPException,
URISyntaxException
- The constructor for creating a GetResponse
- Throws:
SOAPException
URISyntaxException
TransferGetResponse
public TransferGetResponse(String addressingNamespace)
throws SOAPException,
URISyntaxException
-
- Throws:
SOAPException
URISyntaxException
TransferGetResponse
public TransferGetResponse(String addressingNamespace,
boolean usingSOAP12)
throws SOAPException,
URISyntaxException
-
- Throws:
SOAPException
URISyntaxException
TransferGetResponse
public TransferGetResponse(SOAPMessage msg)
throws SOAPException
- The constructor for parsing a GetResponse
- 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/GetResponse.
-
- Overrides:
setAction
in class AddressingMessage
-
- Throws:
URISyntaxException
Skip navigation links