Purpose of BindingProvider in JAX-WS web service

2019-05-15 03:50发布

I have searched a lot to find the concrete explanation of BindingProvider used in web services but I could get the complete information.

I have also read official documentation but I am still confused about the concept behind the BindingProvider. The official doc says

4.2 javax.xml.ws.BindingProvider

The BindingProvider interface represents a component that provides a protocol binding for use by clients, it is implemented by proxies and is extended by the Dispatch interface.

In docs, what is mean by Protocol Binding??

Can you guys please help me in understanding What is BindingProvider and its purpose with the help of simple code.

  • Thanks

1条回答
时光不老,我们不散
2楼-- · 2019-05-15 04:50

The BindingProvider interface defines accessor methods for the request and response context maps. The Dispatch<T> interface extends the javax.xml.ws.BindingProvider interface. Standard BindingProvider properties are defined by the JAX-WS specification and the client program may set and get these properties. The application may also define application-specific properties, but the specification discourages this for portability reasons.

See Also:

Example:

查看更多
登录 后发表回答