SOAPRequest

public class SOAPRequest

The SOAPRequest class represents a SOAP request. It is independent of which transport protocol it is using and contains the SOAP message of the original request.

Author:Hugo Y. K. Lam

Constructors

SOAPRequest

SOAPRequest()

Creates a new instance of SOAPRequest.

SOAPRequest

SOAPRequest(Object source)

Creates a new instance of SOAPRequest.

Parameters:
  • source – the source which initiated this request.

Methods

getBytes

public byte[] getBytes()

Gets the SOAP message as bytes.

Returns:the byte array of the SOAP message.

getHeaders

public MimeHeaders getHeaders()

Gets the mime headers of the request.

Returns:the mime headers of the request.

getMessage

public SOAPMessage getMessage()

Gets the SOAP message of this request.

Returns:the SOAP message of this request.

getSource

public Object getSource()

Gets the source which initiated this request.

Returns:the source which initiated this request.

setBytes

void setBytes(byte[] bs)

Sets the bytes of the SOAP message.

Parameters:
  • bs – the byte array of the SOAP message.

setHeaders

void setHeaders(MimeHeaders headers)

Sets the mime headers of the request.

Parameters:
  • headers – the mime headers of the request.

setMessage

void setMessage(SOAPMessage message)

Sets the SOAP message of this request.

Parameters:
  • message – the SOAP message of this request.

setSource

void setSource(Object source)

Sets the source which initiated this request.

Parameters:
  • source – the source which initiated this request.