|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface WSGateway
Interface of the web service gateway. SOAP-specific, but SOAP transport-independent.
| Field Summary | |
|---|---|
static int |
ERROR_COULD_NOT_PARSE_WSDL
In requestWSDLAccess(), an error occurred while parsing the WSDL document. |
static int |
ERROR_IO
In sendSOAPRequest(), an error occurred while communicating with the web service. |
static int |
ERROR_LEASE_EXPIRED
In sendSOAPRequest(), parameter 'leaseID' expired or was invalid, for the given agent ID. |
static int |
ERROR_MALFORMED_SOAP_REQUEST
In sendSOAPRequest(), parameter 'request' was not a valid SOAP request. |
static int |
ERROR_MALFORMED_URL
In requestWSDLAccess(), parameter 'wsdl' was not a valid URL. |
static int |
ERROR_NO_EXCLUSIVE_TRANSPORT
In requestWSDLAccess(), the WS gateway did not grant 'exclTransport = true'. |
static int |
ERROR_UNKNOWN_PORT
In sendSOAPRequest(), parameter 'portName' was invalid or not found. |
static java.lang.String |
WSGATEWAY_ADDRESS
WSGateway's principal ID registration in the lookup service. |
| Method Summary | |
|---|---|
void |
publishService(java.lang.String serviceName,
AgentHandle publisher,
java.lang.String className,
byte[] jar)
|
int |
requestWSDLAccess(java.lang.String wsdl,
java.lang.String serviceName,
java.lang.String serviceNameSpace,
java.lang.Boolean exclTransport,
AgentHandle handle)
Called by an agent server (on behalf of an agent) to request access to a web service specified by a WSDL document. |
java.lang.String |
sendSOAPRequest(java.lang.String request,
java.lang.String portName,
java.lang.Integer leaseID,
AgentHandle handle)
Called by an agent server (on behalf of an agent) to carry out a SOAP operation. |
void |
unPublishService(java.lang.String serviceName)
|
| Methods inherited from interface org.iids.aos.systemservices.SystemService |
|---|
pingService, shutdown, unbind |
| Field Detail |
|---|
static final int ERROR_MALFORMED_URL
MalformedURLException,
Constant Field Valuesstatic final int ERROR_COULD_NOT_PARSE_WSDL
CouldNotParseWSDL,
Constant Field Valuesstatic final int ERROR_NO_EXCLUSIVE_TRANSPORT
NoExclusiveTransport,
Constant Field Valuesstatic final int ERROR_LEASE_EXPIRED
LeaseExpired,
Constant Field Valuesstatic final int ERROR_UNKNOWN_PORT
UnknownPort,
Constant Field Valuesstatic final int ERROR_MALFORMED_SOAP_REQUEST
MalformedSOAPRequest,
Constant Field Valuesstatic final int ERROR_IO
RemoteException,
Constant Field Valuesstatic final java.lang.String WSGATEWAY_ADDRESS
| Method Detail |
|---|
int requestWSDLAccess(java.lang.String wsdl,
java.lang.String serviceName,
java.lang.String serviceNameSpace,
java.lang.Boolean exclTransport,
AgentHandle handle)
throws org.apache.xmlrpc.XmlRpcException
SOAP communicates over transport sessions whose protocols and contact points are specified in the WSDL document. (Typically these are HTTP sessions.) Some web services associate client state with the transport sessions. An agent may optionally specify that it requires the same transport sessions to be used consistently by this lease and that other leases (of other agents or of the same agent) cannot share the transport sessions.
wsdl - a URL pointing to a WSDL documentserviceName - the requested web service in the WSDL documentserviceNameSpace - the XML name space of serviceNameexclTransport - if true, the agent requires transport sessions to be maintained for the
duration of the lease, not to be shared by other leases, and to use at
most one transport session per web service porthandle - the agent identifier
org.apache.xmlrpc.XmlRpcException - containing one of: ERROR_MALFORMED_URL, ERROR_COULD_NOT_PARSE_WSDL,
ERROR_NO_EXCLUSIVE_TRANSPORT
java.lang.String sendSOAPRequest(java.lang.String request,
java.lang.String portName,
java.lang.Integer leaseID,
AgentHandle handle)
throws org.apache.xmlrpc.XmlRpcException
request - a SOAP envelope containing the request,
including the name of the operationportName - port inside the web service that
contains the SOAP operationleaseID - a lease identifier returned by requestWSDLAccesshandle - the agent identifier, which must correspond to
the agent identifier passed to requestWSDLAccess
org.apache.xmlrpc.XmlRpcException - containing one of: ERROR_LEASE_EXPIRED, ERROR_UNKNOWN_PORT,
ERROR_MALFORMED_SOAP_REQUEST, ERROR_IO
void publishService(java.lang.String serviceName,
AgentHandle publisher,
java.lang.String className,
byte[] jar)
throws WSGatewayException
WSGatewayException
void unPublishService(java.lang.String serviceName)
throws WSGatewayException
WSGatewayException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||