ServiceHandle Interface

Represents a reference to a web service (instance of a JWS file). This interface can also refer to a Service control instance that is associated with a JWS service.

# Syntax

    public interface ServiceHandle extends java.io.Serializable

# Package

    package weblogic.jws

# Remarks

None.

# Members

## Constructors

None.

## Methods

public String getConversationID()

Returns the identity of a control instance that the handle refers to. This may be null if the handle is associated with a service instance instead of a control instance.

public String getJNDIBaseName()

Returns a period-separated string based on the URI, which uniquely identifies this service on this server and is used to generate unique JNDI names for objects associated with this service.

public int getScheme()

Returns the protocol scheme that was used to construct this ServiceHandle. The value returned is one of the constants defined in Fields below.

public String getURI()

Returns a protocol-indendent URI which can be used to refer to this service.

public URL getURL()

Returns a URL which defines a reference to this service using the same scheme that was used to construct this service handle.

public URL getURL(int scheme)

Returns a URL which defines a reference to this service using the specified scheme. The scheme argument is one of the constants defined in Fields below.

## Fields

public final static int SCHEME_DEFAULT = 0

Indicates the default scheme shall be used. This value is only useful as an argument to getURL(int scheme).

public final static int SCHEME_HTTP = 1

indicates the http: scheme.

public final static int SCHEME_JMS = 2

Indicates the jms: scheme.

public final static int SCHEME_SMTP = 3

Indicates the smtp: scheme.

public final static int SCHEME_FTP = 4

Indicates the ftp: scheme.

public final static int SCHEME_FILE = 5

Indicates the file: scheme.

## Callbacks

None.

Related Topics

JwsContext Interface