Provider (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.xml.ws Interface Provider<T>


public interface Provider<T>

Service endpoints may implement the Provider interface as a dynamic alternative to an SEI. Implementations are required to support Provider<Source> and Provider<SOAPMessage>. The ServiceMode annotation can be used to control whether the Provider instance will receive entire protocol messages or just message payloads.

从以下版本开始:
JAX-WS 2.0
另请参见:
Source, SOAPMessage, ServiceMode

方法摘要
 T invoke(T request)
          Invokes an operation occording to the contents of the request message.
 

方法详细信息

invoke

T invoke(T request)
Invokes an operation occording to the contents of the request message.

参数:
request - The request message or message payload.
返回:
The response message or message payload. May be null if there is no response.
抛出异常:
WebServiceException - if there is an error processing request. The cause of the WebServiceException may be set to a subclass of ProtocolException to control the protocol level representation of the exception.
另请参见:
MessageContext, ProtocolException

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.