Show Table of Contents
第 18 章 Web Services 子系统
18.1. 配置 Web Services 选项
要配置 Web Services 选项,请点击 Web Services 菜单条目。下表解释了这些选项。
表 18.1. Web Services 的配置选项
| 选项 | 描述 | CLI 命令 |
|---|---|---|
| Modify WSDL Address |
指定应用程序是否可以修改 WSDL 地址。默认值是
true。
|
/profile=full-ha/subsystem=webservices/:write-attribute(name=modify-wsdl-address,value=true) |
| WSDL Host |
JAX-WS Web Service 的 WSDL 合约包括 <soap:address> 元素,它指向端点的位置。如果 <soap:address> 的值是一个有效的 URL,除非设置
modify-wsdl-address 为 true,它不会被覆盖。如果 <soap:address> 的值不是一个有效的 URL,它会用 wsdl-host 和 wsdl-port 或 wsdl-secure-port 的值进行覆盖。如果wsdl-host 被设置为 jbossws.undefined.host,覆盖 <soap-address> 时请求者的主机地址将被使用。它的默认值是 ${jboss.bind.address:127.0.0.1},当 JBoss EAP 6 启动时如果没有指定绑定地址,将使用 127.0.0.1。
|
/profile=full-ha/subsystem=webservices/:write-attribute(name=wsdl-host,value=127.0.0.1) |
| WSDL Port |
用于重写 SOAP 端口的非安全端口。如果为
0(默认值),端口将通过查询安装的连接器列表来确定。
|
/profile=full-ha/subsystem=webservices/:write-attribute(name=wsdl-port,value=80) |
| WSDL Secure Port |
用于重写 SOAP 端口的安全端口。如果为
0(默认值),端口将通过查询安装的连接器列表来确定。
|
/profile=full-ha/subsystem=webservices/:write-attribute(name=wsdl-secure-port,value=443) |
注意
您可能需要修改配置集以使用不同的受管域配置集,或者从用于独立服务器的命令删除 /profile=full-ha 部分。
Web Services 子系统
要启用 Apache CXF 的日志,请在 standalone/domain.xml 文件里配置下列系统属性:
<system-properties> <property name="org.apache.cxf.logging.enabled" value="true"/> </system-properties>

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.