Oracle9i Supplied Java Packages Reference Release 2 (9.2) Part Number A96609-01 |
|
This chapter documents package package oracle.soap.transport.http. This package contains the classes that provide support for Oracle SOAP in the XDK for Java.
Oracle SOAP is an implementation of the Simple Object Access Protocol. Oracle SOAP is based on the SOAP open source implementation developed by the Apache Software Foundation.
This chapter contains these sections:
The Simple Object Access Protocol (SOAP) is a transport protocol for sending and receiving requests and responses across the Internet. It is based on XML and HTTP.
SOAP is transport protocol-independent and operating system-independent. It provides the standard XML message format for all applications. SOAP uses the XML Schema standard of the World Wide Web Consortium (W3C).
Package oracle.soap.transport.http contains class OracleSOAPHTTPConnection
, which implements OracleSOAPTransport
.
The Oracle SOAP client API supports a pluggable transport, allowing the client to easily change the transport. Available transports include HTTP and HTTPS (secure HTTP).
Package oracle.soap.transport.http contains class oracle.soap.transport.http.OracleSOAPHTTPConnection, which implements Oracle- specific transport extensions in OracleSOAPTransport
.
oracle.soap.transport.http.OracleSOAPHTTPConnection
java.lang.Object | +----oracle.soap.transport.http.OracleSOAPHTTPConnection public class OracleSOAPHTTPConnection extends Object
Implements OracleSOAPTransport
.
public static final String ALLOW_USER_INTERACTION
property to set user interaction
public static final String STATUS_LINE
property used to get HTTP status line from HTTP headers (getHeaders)
public static final String PROXY_HOST
property used for defining proxy host
public static final String PROXY_PORT
property used for defining proxy port
public static final String PROXY_AUTH_TYPE
property used for defining proxy auth type (basic/digest)
public static final String PROXY_USERNAME
property used for defining proxy username
public static final String PROXY_PASSWORD
property used for defining proxy password
public static final String AUTH_TYPE
property used for defining http auth type (basic/digest)
public static final String USERNAME
property used for defining http username
public static final String PASSWORD
property used for defining http password
public static final String WALLET_LOCATION
property used for defining wallet location used for HTTPS
public static final String WALLET_PASSWORD
property used for defining wallet password used for HTTPS
public static final String CIPHERS
property used for defining cipher suites used for HTTPS (colon separated list of cipher suites).
public OracleSOAPHTTPConnection(Properties prop)
Constructor that takes Properties as an arg.
prop
- connection properties.
public void setProperties(Properties prop)
Set the connection properties.
prop
- connection properties
public Properties getProperties()
Get the connection properties.
connection properties
public void send(URL sendTo, String action, Hashtable headers, Envelope env, SOAPMappingRegistry smr, int timeout) throws SOAPException
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 should instead use org.apache.soap.rpc.Call
.
sendTo
- the URL to send the envelope to
action
- the SOAPAction header field value
headers
- any other header fields to go to as protocol headers
env
- the envelope to send
smr
- the XML<->Java type mapping registry (passed on)
ctx
- the request SOAPContext
SOAPException
with appropriate reason code if problem.
public BufferedReader receive()
Return a buffered reader to receive back the response to whatever was sent to whatever. Soap clients should not use this method directly but use org.apache.soap.rpc.Call
instead.
A reader to read the results from or null if that's not possible.
public Hashtable getHeaders()
Return access to headers generated by the protocol. Soap clients should not use this method directly but use org.apache.soap.rpc.Call instead.
A hashtable containing all the headers.
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.
public void finalize() throws Throwable
finalize
in class Object
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|