public class TransferGetResponse extends TransferMessage
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());
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
GET_RESPONSE_ACTION_URI |
ACTION_NOT_SUPPORTED_SUBCODE, DESTINATION_UNREACHABLE_SUBCODE, ENDPOINT_UNAVAILABLE_SUBCODE, INVALID_MESSAGE_INFORMATION_HEADER_SUBCODE, MESSAGE_INFORMATION_HEADER_REQUIRED_SUBCODE| Constructor and Description |
|---|
TransferGetResponse()
The constructor for creating a GetResponse
|
TransferGetResponse(javax.xml.soap.SOAPMessage msg)
The constructor for parsing a GetResponse
|
TransferGetResponse(java.lang.String addressingNamespace) |
TransferGetResponse(java.lang.String addressingNamespace, boolean usingSOAP12) |
| Modifier and Type | Method and Description |
|---|---|
void |
setAction(java.lang.String action)
Overwrite setAction() so that actoin is always http://schemas.xmlsoap.org/ws/2004/09/transfer/GetResponse.
|
addRelatesTo, addRelatesTo, addRelatesTo, addRelatesTo, getAction, getAddressingNamespace, getFaultTo, getFrom, getMessageID, getRelatesTo, getReplyTo, getSOAPMessage, getTo, send, send, setFaultTo, setFaultTo, setFrom, setFrom, setMessageID, setReplyTo, setReplyTo, setSOAPVersion, setTo, setTopublic static final java.lang.String GET_RESPONSE_ACTION_URI
public TransferGetResponse()
throws javax.xml.soap.SOAPException,
java.net.URISyntaxException
javax.xml.soap.SOAPExceptionjava.net.URISyntaxException
public TransferGetResponse(java.lang.String addressingNamespace)
throws javax.xml.soap.SOAPException,
java.net.URISyntaxException
javax.xml.soap.SOAPExceptionjava.net.URISyntaxException
public TransferGetResponse(java.lang.String addressingNamespace,
boolean usingSOAP12)
throws javax.xml.soap.SOAPException,
java.net.URISyntaxException
javax.xml.soap.SOAPExceptionjava.net.URISyntaxException
public TransferGetResponse(javax.xml.soap.SOAPMessage msg)
throws javax.xml.soap.SOAPException
msg -javax.xml.soap.SOAPException
public final void setAction(java.lang.String action)
throws java.net.URISyntaxException
setAction in class AddressingMessagejava.net.URISyntaxException