绑定提供者在JAX-WS Web服务中的用途 [英] Purpose of BindingProvider in JAX-WS web service

查看:54
本文介绍了绑定提供者在JAX-WS Web服务中的用途的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我进行了很多搜索,以找到Web服务中使用的BindingProvider的具体说明,但是我可以获得完整的信息.

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

我也阅读了官方文档,但对于BindingProvider背后的概念仍然感到困惑.官方文件说

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

BindingProvider接口表示一个组件,该组件提供 协议绑定供客户端使用,由代理和 通过Dispatch接口扩展.

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?

你们可以通过简单的代码帮助我了解什么是BindingProvider及其目的.

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

推荐答案

BindingProvider接口为请求和响应上下文映射定义访问器方法. Dispatch<T>接口扩展了javax.xml.ws.BindingProvider接口.标准BindingProvider属性由JAX-WS规范定义,并且客户端程序可以设置和获取这些属性.该应用程序可能还会定义特定于应用程序的属性,但是出于可移植性的原因,规范不鼓励这样做.

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.

另请参见:

  • Interface BindingProvider
  • JAX-WS 2.2 API

示例:

这篇关于绑定提供者在JAX-WS Web服务中的用途的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆