org.apache.soap.transport
Interface SOAPTransport
- All Known Implementing Classes:
- SOAPHTTPConnection, SOAPSMTPConnection
- public interface SOAPTransport
This interface is an abstraction of the transport layer that's carrying
the messages.
- Author:
- Sanjiva Weerawarana (sanjiva@watson.ibm.com)
Method Summary |
java.util.Hashtable |
getHeaders()
Return access to headers generated by the protocol. |
java.io.BufferedReader |
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)
This method is used to request that an envelope be sent. |
send
public void send(java.net.URL sendTo,
java.lang.String action,
java.util.Hashtable headers,
Envelope env,
SOAPMappingRegistry smr)
throws SOAPException
- This method is used to request that an envelope be sent.
- Parameters:
sendTo
- the URL to send the envelope toaction
- the SOAPAction header field valueheaders
- any other header fields to go to as protocol headersenv
- the envelope to sendsmr
- the XML<->Java type mapping registry (passed on)- Throws:
- SOAPException - with appropriate reason code if problem
receive
public java.io.BufferedReader receive()
- Return a buffered reader to receive back the response to whatever
was sent to whatever.
- Returns:
- a reader to read the results from or null if that's not
possible.
getHeaders
public java.util.Hashtable getHeaders()
- Return access to headers generated by the protocol.
- Returns:
- a hashtable containing all the headers
Copyright © 2000 Apache XML Project. All Rights Reserved.