sun-jaxws.xml 配置说明

本文详细介绍了 JAX-WS 在部署 Web 服务时所涉及的关键属性及其用途,包括名称、WSDL 文件位置、服务及端口 QNames、实现类名等,并解释了这些属性在 Java 开发模式下的推荐使用方式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Attribute

Optional

Use

name

N

Name of the endpoint

wsdl

Y

Primary wsdl file location in the WAR file. For e.g. WEB-INF/wsdl/HelloService.wsdl. If this isn't specified, JAX-WS will create and publish a new WSDL. When the service is developed from Java, it is recommended to omit this attribute.

service

Y

QName of WSDL service. For e.g. {http://example.org/}HelloService. When the service is developed from java, it is recommended to omit this attribute.

port

Y

QName of WSDL port. For e.g. {http://example.org/}HelloPort. When the service is developed from Java, it is recommended to omit this attribute.

implementation

N

Endpoint implementation class name. For e.g: hello.HelloImpl. The class should have @WebService annotation. Provider based implementation class doesn't have to have this annotation.

url-pattern

N

Should match <url-pattern> in web.xml

binding

Y

Binding id defined in the JAX-WS API. The possible values are:

"http://schemas.xmlsoap.org/wsdl/soap/http",
"http://www.w3.org/2003/05/soap/bindings/HTTP/"

If omitted, it is considered SOAP1.1 binding.

enable-mtom

Y

Enables MTOM optimization. true or false. Default is false.

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值