receive()
Return a buffered reader to receive back the response to whatever was sent to whatever.

void

send(java.net.URL sendTo, java.lang.String action, java.util.Hashtable headers, Envelope env, SOAPMappingRegistry smr, SOAPContext ctx)
This method is used to request that an envelope be posted to the given URL.

NO_UTF8

public static final java.lang.String NO_UTF8

Connection property to remove the "charset" parameter in the Content-Type HTTP header. The Content-Type HTTP header is "text/xml; charset=utf-8" (unless the message has attachments). If this property is set for the connection, then the Content-Type HTTP header is set to "text/xml" (unless the message has attachments). The message contents are still encoded as UTF8.

getMaintainSession

setTimeout

timeout - the amount of time, in ms, to block on reading data. A zero value indicates an infinite timeout.

getTimeout

public int getTimeout()

Get the HTTP read timeout.

Returns:

the amount of time, in ms, to block on reading data.

setOutputBufferSize

public void setOutputBufferSize(int sz)

Sets the output buffer size (in bytes).

Parameters:

sz - The output buffer size (in bytes).

getOutputBufferSize

public int getOutputBufferSize()

Gets the output buffer size (in bytes).

Returns:

The output buffer size (in bytes).

setRequestHeaders

public void setRequestHeaders(java.util.Properties headers)

Sets the HTTP request headers. These headers are used only if the send method is called with null protocol headers. The HTTP header names are case insensitive. If two (or more) headers, whose names only differ by case, are set; only one of those two (or more) headers will be sent. It is undefined as to which header, of the two (or more) headers whose names only differ by case, will get picked to be send.

Parameters:

headers - Properties that contain the HTTP request headers.

See Also:

send

getRequestHeaders

public java.util.Properties getRequestHeaders()

Gets the HTTP request headers. These headers are used only if the send method is called with null protocol headers.

Returns:

Properties that contain the HTTP request headers.

See Also:

send

send

This method is used to request that an envelope be posted to the given URL. The response (if any) must be gotten by calling the receive() function. Soap clients should not use this method directly but use org.apache.soap.rpc.Call instead.

getResponseSOAPContext

close

public void close()

Closes the connection. Once this method has been called, the BufferedReader returned by receive method may be closed and should not be used. Calling this method will free resources without having the garbage collector run