BEA Systems, Inc.

weblogic.webservice.binding
Interface Binding

All Known Implementing Classes:
AbstractBinding, weblogic.webservice.binding.soap.HttpClientBinding, HttpsClientBinding

Deprecated. please migrate to jws for webservices

public interface Binding

Binding represents an instance of a bound connection. It can be a client-server or server-client connection. An example of the binding is HTTP-SOAP client-side binding.


Method Summary
 BindingInfo getBindingInfo()
          Deprecated. Returns the binding information.
 String getDestination()
          Deprecated. Returns the destination of the request.
 String getReplyTo()
          Deprecated. Returns the address to which to send the response.
 String getSender()
          Deprecated. Returns the address of the sender.
 void init(BindingInfo info)
          Deprecated. Initializes this binding.
 void receive(MessageContext context)
          Deprecated. Receives a message from the binding connection.
 void send(MessageContext context)
          Deprecated. Sends the specified message to the destination.
 void setDestination(String destination)
          Deprecated. Sets the destination of the request
 void setReplyTo(String replyTo)
          Deprecated. Sets the address to which to send the response.
 void setSender(String sender)
          Deprecated. Sets the address of the sender.
 

Method Detail

getReplyTo

String getReplyTo()
Deprecated. 
Returns the address to which to send the response. This is used only for asynchronous calls.

Returns:
address to sent response (eg: from@yahoo.com)

setReplyTo

void setReplyTo(String replyTo)
Deprecated. 
Sets the address to which to send the response.

Parameters:
replyTo - address to sent response

getSender

String getSender()
Deprecated. 
Returns the address of the sender.

Returns:
address of the sender

setSender

void setSender(String sender)
Deprecated. 
Sets the address of the sender.

Parameters:
sender - address of the sender

getDestination

String getDestination()
Deprecated. 
Returns the destination of the request.

Returns:
destination address

setDestination

void setDestination(String destination)
Deprecated. 
Sets the destination of the request

Parameters:
destination - destination of the request

init

void init(BindingInfo info)
          throws IOException
Deprecated. 
Initializes this binding.

Parameters:
info - binding information used to create this binding
Throws:
IOException - failed to init binding

getBindingInfo

BindingInfo getBindingInfo()
Deprecated. 
Returns the binding information.

Returns:
binding information

receive

void receive(MessageContext context)
             throws IOException,
                    SOAPException
Deprecated. 
Receives a message from the binding connection. This call may wait until the message is received.

Parameters:
context - MessageContext that holds the SOAP envelope
Throws:
IOException - failed to receive message
IOException - failed to construct soap message
SOAPException

send

void send(MessageContext context)
          throws IOException,
                 SOAPException
Deprecated. 
Sends the specified message to the destination.

Parameters:
context - context which holds the soap message to send
Throws:
IOException - failed to send message
SOAPException - failed to write soap message

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs100
Copyright 2006 BEA Systems Inc.