[jboss-cvs] JBossAS SVN: r89157 - projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed May 20 01:01:17 EDT 2009
Author: xhuang at jboss.com
Date: 2009-05-20 01:01:17 -0400 (Wed, 20 May 2009)
New Revision: 89157
Modified:
projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN/Web_Services.po
Log:
update
Modified: projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN/Web_Services.po
===================================================================
--- projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN/Web_Services.po 2009-05-20 04:52:28 UTC (rev 89156)
+++ projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN/Web_Services.po 2009-05-20 05:01:17 UTC (rev 89157)
@@ -9,8 +9,8 @@
"Project-Id-Version: Web_Services\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-01-20 02:37+0000\n"
-"PO-Revision-Date: 2009-04-23 14:46+1000\n"
-"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"PO-Revision-Date: 2009-05-20 15:00+1000\n"
+"Last-Translator: Xi HUANG\n"
"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -117,6 +117,25 @@
">\n"
"</message>"
msgstr ""
+"<complexType name='concatType'>\n"
+" <sequence>\n"
+" <element name='String_1' nillable='true' "
+"type='string'/>\n"
+" <element name='long_1' type='long'/>\n"
+" </sequence>\n"
+" </complexType>\n"
+" <element name='concat' type='tns:concatType'/"
+">\n"
+" Therefore, message parts must refer to an element from the schema. \n"
+" <message name='EndpointInterface_concat'>\n"
+" <part name='parameters' element='tns:"
+"concat'/>\n"
+" </message>\n"
+"The following message definition is invalid. \n"
+"<message name='EndpointInterface_concat'>\n"
+" <part name='parameters' type='tns:concatType'/"
+">\n"
+"</message>"
#. Tag: title
#: Web_Services.xml:24
@@ -2808,9 +2827,9 @@
#. Tag: title
#: Web_Services.xml:1031 Web_Services.xml:1107
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<title>Specifications</title>"
-msgstr "<title>FD</title>"
+msgstr "<title>Specifications</title>"
#. Tag: para
#: Web_Services.xml:1032
@@ -3088,6 +3107,79 @@
"</env:Body>\n"
"</env:Envelope>"
msgstr ""
+"<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/"
+"'>\n"
+"<env:Header xmlns:wsa='http://schemas.xmlsoap.org/ws/2004/08/"
+"addressing'>\n"
+"<wsa:To>uri:jbossws-samples-wsaddr/TestService</wsa:To>\n"
+"<wsa:Action>http://org.jboss.ws/addressing/stateful/action</wsa:"
+"Action>\n"
+"<wsa:ReferenceParameters>\n"
+"<ns1:clientid xmlns:ns1='http://somens'>clientid-1</ns1:"
+"clientid>\n"
+"</wsa:ReferenceParameters>\n"
+"</env:Header>\n"
+"<env:Body>\n"
+"<ns1:addItem xmlns:ns1='http://org.jboss.ws/samples/wsaddr'"
+">\n"
+"<String_1>Ice Cream</String_1>\n"
+"</ns1:addItem>\n"
+"</env:Body>\n"
+"</env:Envelope>\n"
+" \n"
+"<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/"
+"'>\n"
+"<env:Header xmlns:wsa='http://schemas.xmlsoap.org/ws/2004/08/"
+"addressing'>\n"
+"<wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>\n"
+"<wsa:Action>http://org.jboss.ws/addressing/stateful/actionReply</"
+"wsa:Action>\n"
+"<ns1:clientid xmlns:ns1='http://somens'>clientid-1</ns1:"
+"clientid>\n"
+"</env:Header>\n"
+"<env:Body>\n"
+"<ns1:addItemResponse xmlns:ns1='http://org.jboss.ws/samples/"
+"wsaddr'/>\n"
+"</env:Body>\n"
+"</env:Envelope>\n"
+" \n"
+"...\n"
+" \n"
+"<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/"
+"'>\n"
+"<env:Header xmlns:wsa='http://schemas.xmlsoap.org/ws/2004/08/"
+"addressing'>\n"
+"<wsa:To>uri:jbossws-samples-wsaddr/TestService</wsa:To>\n"
+"<wsa:Action>http://org.jboss.ws/addressing/stateful/action</wsa:"
+"Action>\n"
+"<wsa:ReferenceParameters>\n"
+"<ns1:clientid xmlns:ns1='http://somens'>clientid-1</ns1:"
+"clientid>\n"
+"</wsa:ReferenceParameters>\n"
+"</env:Header>\n"
+"<env:Body>\n"
+"<ns1:getItems xmlns:ns1='http://org.jboss.ws/samples/wsaddr'/"
+">\n"
+"</env:Body>\n"
+"</env:Envelope>\n"
+" \n"
+"<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/"
+"'>\n"
+"<env:Header xmlns:wsa='http://schemas.xmlsoap.org/ws/2004/08/"
+"addressing'>\n"
+"<wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>\n"
+"<wsa:Action>http://org.jboss.ws/addressing/stateful/actionReply</"
+"wsa:Action>\n"
+"<ns1:clientid xmlns:ns1='http://somens'>clientid-1</ns1:"
+"clientid>\n"
+"</env:Header>\n"
+"<env:Body>\n"
+"<ns1:getItemsResponse xmlns:ns1='http://org.jboss.ws/samples/"
+"wsaddr'>\n"
+"<result>[Ice Cream, Ferrari]</result>\n"
+"</ns1:getItemsResponse>\n"
+"</env:Body>\n"
+"</env:Envelope>"
#. Tag: title
#: Web_Services.xml:1095
@@ -3215,9 +3307,9 @@
#. Tag: para
#: Web_Services.xml:1165
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The relevant steps are:"
-msgstr "DTD的元素是:"
+msgstr "相关的步骤是:"
#. Tag: para
#: Web_Services.xml:1170
@@ -3419,6 +3511,75 @@
" \n"
"</wsdl:definitions>"
msgstr ""
+"<?xml version="1.0" encoding="UTF-8"?>\n"
+" \n"
+"<wsdl:definitions\n"
+"targetNamespace="http://www.jboss.org/sysmon"\n"
+"xmlns:tns="http://www.jboss.org/sysmon"\n"
+"xmlns:wse='http://schemas.xmlsoap.org/ws/2004/08/eventing'\n"
+"xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'\n"
+"xmlns:wsa10='http://www.w3.org/2005/08/addressing'\n"
+"xmlns:xs='http://www.w3.org/2001/XMLSchema'\n"
+"xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">\n"
+" \n"
+"<wsdl:import\n"
+"(1) namespace='http://schemas.xmlsoap.org/ws/2004/08/"
+"eventing'\n"
+"location='jbwse.wsdl' />\n"
+" \n"
+"<wsdl:types>\n"
+" \n"
+"<xs:schema targetNamespace='http://schemas.xmlsoap.org/ws/2004/08/"
+"eventing'>\n"
+"(2) <xs:include schemaLocation='jbwse.xsd'/>\n"
+"</xs:schema>\n"
+" \n"
+"(3) <xs:schema\n"
+"targetNamespace="http://www.jboss.org/sysmon"\n"
+"elementFormDefault="qualified"\n"
+"blockDefault="#all">\n"
+"<xs:element name="SystemStatus">\n"
+"<xs:complexType>\n"
+"<xs:sequence>\n"
+"<xs:element name="Time " type="xs:dateTime"/>\n"
+"<xs:element name="HostName" type="xs:string"/>\n"
+"<xs:element name="HostAddress" type="xs:string"/>\n"
+"<xs:element name="ActiveThreadCount" type="xs:int"/"
+">\n"
+"<xs:element name="FreeMemory" type="xs:string"/>\n"
+"<xs:element name="MaxMemory" type="xs:string"/>\n"
+"</xs:sequence>\n"
+"</xs:complexType>\n"
+"</xs:element>\n"
+"</xs:schema>\n"
+" \n"
+"</wsdl:types>\n"
+" \n"
+"<wsdl:message name='SystemInfoMsg'>\n"
+"<wsdl:part name='body' element='tns:SystemStatus'/"
+">\n"
+"</wsdl:message>\n"
+" \n"
+"(4) <wsdl:portType name='SystemInfo' wse:EventSource='"
+"true'>\n"
+"<wsdl:operation name='SysmonOp'>\n"
+"<wsdl:output message='tns:SystemInfoMsg'/>\n"
+"</wsdl:operation>\n"
+"</wsdl:portType>\n"
+" \n"
+"<wsdl:binding name="SystemInfoBinding" type="tns:"
+"SystemInfo">\n"
+"<soap:binding style="document" transport="http://schemas."
+"xmlsoap.org/soap/http"/>\n"
+"<wsdl:operation name="SysmonOp">\n"
+"<soap:operation soapAction=""/>\n"
+"<wsdl:output>\n"
+"<soap:body use="literal"/>\n"
+"</wsdl:output>\n"
+"</wsdl:operation>\n"
+"</wsdl:binding>\n"
+" \n"
+"</wsdl:definitions>"
#. Tag: para
#: Web_Services.xml:1223
@@ -3470,9 +3631,9 @@
#. Tag: para
#: Web_Services.xml:1251
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The event dispatcher interface:"
-msgstr "服务生命周期接口"
+msgstr "事件分配者接口"
#. Tag: programlisting
#: Web_Services.xml:1254
@@ -3483,12 +3644,16 @@
"void dispatch(URI eventSourceNS, Element payload);\n"
"}"
msgstr ""
+"public interface EventDispatcher\n"
+"{\n"
+"void dispatch(URI eventSourceNS, Element payload);\n"
+"}"
#. Tag: emphasis
#: Web_Services.xml:1256
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Example notification"
-msgstr "Notifications"
+msgstr "通知示例"
#. Tag: programlisting
#: Web_Services.xml:1258
@@ -3580,7 +3745,7 @@
#: Web_Services.xml:1310
#, no-c-format
msgid "WS-Security"
-msgstr ""
+msgstr "WS-Security"
#. Tag: para
#: Web_Services.xml:1311
@@ -3592,7 +3757,7 @@
"directly to the elements of the web service message. This increases the "
"flexibility of your web services, by allowing any message model to be used "
"(point to point, multi-hop relay, etc)."
-msgstr ""
+msgstr "WS-Security 解决消息级别的安全性。它标准化 web service 的授权、加密和数字签名处理。不象传输安全模型如 SSL,WS-Security 把安全性直接应用到 web service 消息的元素里。通过使用消息模型(点对点、多中继点传输等),这增加了 web service 的灵活性。"
#. Tag: para
#: Web_Services.xml:1314
@@ -3600,61 +3765,61 @@
msgid ""
"This chapter describes how to use WS-Security to sign and encrypt a simple "
"SOAP message."
-msgstr ""
+msgstr "本章讨论了如何使用 WS-Security 来签署和加密一条简单的 SOAP 消息。"
#. Tag: emphasis
#: Web_Services.xml:1318
#, no-c-format
msgid "<emphasis>Specifications</emphasis>"
-msgstr ""
+msgstr "<emphasis>Specifications</emphasis>"
#. Tag: para
#: Web_Services.xml:1320
#, no-c-format
msgid "WS-Security is defined by the combination of the following specifications:"
-msgstr ""
+msgstr "WS-Security 由下列规格的组合定义:"
#. Tag: ulink
#: Web_Services.xml:1326
#, no-c-format
msgid "SOAP Message Security 1.0"
-msgstr ""
+msgstr "SOAP Message Security 1.0"
#. Tag: ulink
#: Web_Services.xml:1331
#, no-c-format
msgid "Username Token Profile 1.0"
-msgstr ""
+msgstr "Username Token Profile 1.0"
#. Tag: ulink
#: Web_Services.xml:1336
#, no-c-format
msgid "X.509 Token Profile 1.0"
-msgstr ""
+msgstr "X.509 Token Profile 1.0"
#. Tag: ulink
#: Web_Services.xml:1341
#, no-c-format
msgid "W3C XML Encryption"
-msgstr ""
+msgstr "W3C XML Encryption"
#. Tag: ulink
#: Web_Services.xml:1346
#, no-c-format
msgid "W3C XML Signature"
-msgstr ""
+msgstr "W3C XML Signature"
#. Tag: ulink
#: Web_Services.xml:1351
#, no-c-format
msgid "Basic Security Profile 1.0 (Still in Draft)"
-msgstr ""
+msgstr "Basic Security Profile 1.0 (Still in Draft)"
#. Tag: title
#: Web_Services.xml:1356
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Endpoint configuration"
-msgstr "客户端配置"
+msgstr "终端配置"
#. Tag: para
#: Web_Services.xml:1357
@@ -3669,6 +3834,10 @@
"url=\"http://jbws.dyndns.org/mediawiki/index.php?title=JAX-"
"WS_Client_Configuration\">JAX-WS Client Configuration</ulink> respectively."
msgstr ""
+"JBossWS 使用一些处理程序来标识用 ws-security 加密的请求并调用安全性组件来签署和加密消息。为了启用安全处理,客户和服务器端都需要包含一个对应的处理程序配置。首选的办法是分别引用预定义的 <ulink url=\"http://jbws.dyndns.org/mediawiki/index.php?title=JAX-"
+"WS_Endpoint_Configuration\">JAX-WS Endpoint Configuration</ulink> 或 <ulink "
+"url=\"http://jbws.dyndns.org/mediawiki/index.php?title=JAX-"
+"WS_Client_Configuration\">JAX-WS Client Configuration</ulink>。"
#. Tag: para
#: Web_Services.xml:1363
@@ -3676,13 +3845,13 @@
msgid ""
"You need to setup both the endpoint configuration and the WSSE declarations. "
"That's two separate steps."
-msgstr ""
+msgstr "你需要设置终端配置和 WSSE 声明。这是两个单独的步骤。"
#. Tag: title
#: Web_Services.xml:1371
#, no-c-format
msgid "Server side WSSE declaration (jboss-wsse-server.xml)"
-msgstr ""
+msgstr "服务器端的 WSSE 声明(jboss-wsse-server.xml)"
#. Tag: para
#: Web_Services.xml:1372
@@ -3869,9 +4038,9 @@
#. Tag: title
#: Web_Services.xml:1450
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Client side key store configuration"
-msgstr "客户端配置"
+msgstr "客户端密钥库配置"
#. Tag: para
#: Web_Services.xml:1451
@@ -4050,7 +4219,7 @@
#: Web_Services.xml:1519
#, no-c-format
msgid "XML Registries"
-msgstr ""
+msgstr "XML 注册表"
#. Tag: para
#: Web_Services.xml:1520
@@ -4062,6 +4231,8 @@
"the Apache jUDDI registry. We also provide support for JAXR Capability Level "
"0 (UDDI Registries) via integration of Apache Scout."
msgstr ""
+"J2EE 1.4 支持 Java API for XML Registries (JAXR)。J2EE 1.4 认证的应用服务器里带有 XML 注册表是可选的。从 jboss-4.0.2 开始,JBoss 附带一个兼容 UDDI v2.0 的注册表,也就是 Apache jUDDI 注册表。我们也通过集成 Apache Scout 提供对 JAXR Capability Level "
+"0 (UDDI Registries) 的支持。"
#. Tag: para
#: Web_Services.xml:1523
@@ -4070,13 +4241,13 @@
"This chapter describes how to configure the jUDDI registry in JBoss and some "
"sample code outlines for using JAXR API to publish and query the jUDDI "
"registry."
-msgstr ""
+msgstr "本章介绍如何配置 JBoss 里的 jUDDI 注册表以及一些使用 JAXR API 发布和查询 jUDDI 注册表的代码示例。"
#. Tag: title
#: Web_Services.xml:1527
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Apache jUDDI Configuration"
-msgstr "JBossCache 配置"
+msgstr "Apache jUDDI 配置"
#. Tag: para
#: Web_Services.xml:1528
@@ -4086,19 +4257,19 @@
"deployed in the juddi-service.sar archive in the \"all\" configuration. The "
"configuration of this service can be done in the jboss-service.xml of the "
"META-INF directory in the juddi-service.sar"
-msgstr ""
+msgstr "jUDDI 注册表的配置通过 MBean 服务进行,它部署在 \"all\" 配置里的 juddi-service.sar 归档文件里。这个服务的配置可以在 juddi-service.sar 的 META-INF 目录下的 jboss-service.xml 里完成。"
#. Tag: para
#: Web_Services.xml:1531
#, no-c-format
msgid "Let us look at the individual configuration items that can be changed."
-msgstr ""
+msgstr "让我们来看看可以修改的配置选项。"
#. Tag: para
#: Web_Services.xml:1534
-#, fuzzy, no-c-format
+#, no-c-format
msgid "DataSources configuration"
-msgstr "JBoss 配置"
+msgstr "数据源配置"
#. Tag: programlisting
#: Web_Services.xml:1537
@@ -4108,6 +4279,9 @@
"<attribute name="DataSourceUrl">java:/DefaultDS</"
"attribute>"
msgstr ""
+"<!-- Datasource to Database-->\n"
+"<attribute name="DataSourceUrl">java:/DefaultDS</"
+"attribute>"
#. Tag: para
#: Web_Services.xml:1538
@@ -4115,7 +4289,7 @@
msgid ""
"Database Tables (Should they be created on start, Should they be dropped on "
"stop, Should they be dropped on start etc)"
-msgstr ""
+msgstr "数据库表(是否在启动时创建、在关闭时删除或是启动时删除等)"
#. Tag: programlisting
#: Web_Services.xml:1541
@@ -4133,6 +4307,17 @@
" <attribute "
"name="DropOnStart">false</attribute>"
msgstr ""
+"<!-- Should all tables be created on Start-->\n"
+" <attribute "
+"name="CreateOnStart">false</attribute>\n"
+" <!-- Should all "
+"tables be dropped on Stop-->\n"
+" <attribute "
+"name="DropOnStop">true</attribute>\n"
+" <!-- Should all "
+"tables be dropped on Start-->\n"
+" <attribute "
+"name="DropOnStart">false</attribute>"
#. Tag: para
#: Web_Services.xml:1542
@@ -4140,7 +4325,7 @@
msgid ""
"JAXR Connection Factory to be bound in JNDI. (Should it be bound? and under "
"what name?)"
-msgstr ""
+msgstr "绑定在 JNDI 里的 JAXR 连接工厂(是否被绑定?以什么名字绑定?)"
#. Tag: programlisting
#: Web_Services.xml:1545
@@ -4156,12 +4341,21 @@
"JAXR -->\n"
"<attribute name="BindJaxr">JAXR</attribute>"
msgstr ""
+"<!-- Should I bind a Context to which JaxrConnectionFactory bound-->\n"
+"<attribute name="ShouldBindJaxr">true</attribute>\n"
+" \n"
+"<!-- Context to which JaxrConnectionFactory to bind to. \n"
+"If you have remote clients, please bind it to the global namespace(default "
+"behavior). \n"
+"To just cater to clients running on the same VM as JBoss, change to java:/"
+"JAXR -->\n"
+"<attribute name="BindJaxr">JAXR</attribute>"
#. Tag: para
#: Web_Services.xml:1546
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Other common configuration:"
-msgstr "客户端配置"
+msgstr "其他常见配置"
#. Tag: para
#: Web_Services.xml:1549
@@ -4169,7 +4363,7 @@
msgid ""
"Add authorized users to access the jUDDI registry. (Add a sql insert "
"statement in a single line)"
-msgstr ""
+msgstr "添加授权用户来访问 jUDDI 注册表(在单独一行里添加一个 SQL insert insert 语句)。"
#. Tag: programlisting
#: Web_Services.xml:1552
@@ -4186,9 +4380,9 @@
#. Tag: title
#: Web_Services.xml:1556
-#, fuzzy, no-c-format
+#, no-c-format
msgid "JBoss JAXR Configuration"
-msgstr "JBoss 配置"
+msgstr "JBoss JAXR 的配置"
#. Tag: para
#: Web_Services.xml:1557
@@ -4198,6 +4392,8 @@
"API. The JAXR configuration relies on System properties passed to the JVM. "
"The System properties that are needed are:"
msgstr ""
+"在本节,我们将讨论运行 JAXR "
+"API 所需的配置。JAXR 配置依赖于传递给 JVM 的系统属性。所需的系统属性为:"
#. Tag: programlisting
#: Web_Services.xml:1560
@@ -4209,6 +4405,11 @@
"jaxr.publish.url=http://localhost:8080/juddi/publish\n"
"juddi.proxy.transportClass=org.jboss.jaxr.juddi.transport.SaajTransport"
msgstr ""
+"javax.xml.registry.ConnectionFactoryClass=org.apache.ws.scout.registry."
+"ConnectionFactoryImpl \n"
+"jaxr.query.url=http://localhost:8080/juddi/inquiry \n"
+"jaxr.publish.url=http://localhost:8080/juddi/publish\n"
+"juddi.proxy.transportClass=org.jboss.jaxr.juddi.transport.SaajTransport"
#. Tag: para
#: Web_Services.xml:1561
@@ -4216,13 +4417,13 @@
msgid ""
"Please remember to change the hostname from \"localhost\" to the hostname of "
"the UDDI service/JBoss Server."
-msgstr ""
+msgstr "请记得把主机名从 \"localhost\" 修改为 UDDI 服务/JBoss 服务器的主机名。"
#. Tag: para
#: Web_Services.xml:1564
#, no-c-format
msgid "You can pass the System Properties to the JVM in the following ways:"
-msgstr ""
+msgstr "你可以下列方式把系统属性传递给 JVM:"
#. Tag: para
#: Web_Services.xml:1569
@@ -4231,7 +4432,7 @@
"When the client code is running inside JBoss (maybe a servlet or an EJB). "
"Then you will need to pass the System properties in the run.sh/run.bat "
"scripts to the java process via the \"-D\" option."
-msgstr ""
+msgstr "当客户代码运行在 JBoss(可以是 servlet 或 EJB)内部时,你需要把 run.sh/run.bat 脚本里的系统属性通过 \"-D\" 选项传递给 java 进程。"
#. Tag: para
#: Web_Services.xml:1574
@@ -4240,19 +4441,19 @@
"When the client code is running in an external JVM. Then you can pass the "
"properties either as \"-D\" options to the java process or explicitly set "
"them in the client code(not recommended)."
-msgstr ""
+msgstr "当客户代码运行外部 JVM 里时,你可以用 \"-D\" 选项传递给 java 进程或者显性地在客户代码里进行设置(我们不推荐这种方式)。"
#. Tag: programlisting
#: Web_Services.xml:1579
#, no-c-format
msgid "System.setProperty(propertyname, propertyvalue);"
-msgstr ""
+msgstr "System.setProperty(propertyname, propertyvalue);"
#. Tag: title
#: Web_Services.xml:1583
#, no-c-format
msgid "JAXR Sample Code"
-msgstr ""
+msgstr "JAXR 的代码示例"
#. Tag: para
#: Web_Services.xml:1584
@@ -4261,7 +4462,7 @@
"There are two categories of API: JAXR Publish API and JAXR Inquiry API. The "
"important JAXR interfaces that any JAXR client code will use are the "
"following."
-msgstr ""
+msgstr "API 有两个类别:JAXR Publish API 和 JAXR Inquiry API。任何 JAXR 客户代码将使用的重要的 JAXR 接口如下:"
#. Tag: para
#: Web_Services.xml:1589
@@ -4274,6 +4475,9 @@
"registry. It provides the methods that are used by the client to discover "
"various capability specific interfaces implemented by the JAXR provider.\""
msgstr ""
+"J2EE "
+"1.4 JavaDoc 里的 <ulink url=\"http://java.sun.com/j2ee/1.4/docs/api/javax/xml/registry/"
+"RegistryService.html\">javax.xml.registry.RegistryService</ulink>:这是 JAXR 提供者实现的主要接口。注册表客户可以从和注册表的连接里获取这个接口。它提供了客户可用来发现 JAXR 提供者实现的不同功能专有的接口的方法。"
#. Tag: para
#: Web_Services.xml:1594
@@ -4287,6 +4491,9 @@
"Note that there is no authentication information provided, because the "
"Connection interface keeps that state and context on behalf of the client.\""
msgstr ""
+"J2EE 1.4 JavaDoc 里的 <ulink url=\"http://java.sun.com/j2ee/1.4/docs/api/javax/xml/registry/"
+"BusinessLifeCycleManager.html\">javax.xml.registry.BusinessLifeCycleManager</"
+"ulink>:注册表服务(Registry Service)开放的 BusinessLifeCycleManager 接口,作为商业级 API 的一部分,实现了注册表的生命周期管理功能。请注意,这里没有提供验证信息,因为 Connection 接口会替客户保持状态和上下文。"
#. Tag: para
#: Web_Services.xml:1599
@@ -4298,6 +4505,8 @@
"exposed by the Registry Service, implements the business style query "
"interface. It is also referred to as the focused query interface.\""
msgstr ""
+"J2EE 1.4 JavaDoc 里的 <ulink url=\"http://java.sun.com/j2ee/1.4/docs/api/javax/xml/registry/"
+"BusinessQueryManager.html\">javax.xml.registry.BusinessQueryManager</ulink>:注册表服务开放的 BusinessQueryManager 接口,实现了商业风格的查询接口。它也被称为 focused query 接口。"
#. Tag: para
#: Web_Services.xml:1604
@@ -4305,13 +4514,13 @@
msgid ""
"Let us now look at some of the common programming tasks performed while "
"using the JAXR API:"
-msgstr ""
+msgstr "让我们来看看使用 JAXR API 时一些常见的编程任务:"
#. Tag: para
#: Web_Services.xml:1607
#, no-c-format
msgid "Getting a JAXR Connection to the registry."
-msgstr ""
+msgstr "获取一个到注册表的 JAXR 连接。"
#. Tag: programlisting
#: Web_Services.xml:1610
@@ -4339,12 +4548,33 @@
"factory.setProperties(props);\n"
"connection = factory.createConnection();"
msgstr ""
+"String queryurl = System.getProperty("jaxr.query.url", ""
+"http://localhost:8080/juddi/inquiry");\n"
+"String puburl = System.getProperty("jaxr.publish.url", ""
+"http://localhost:8080/juddi/publish");\n"
+".. \n"
+"Properties props = new Properties();\n"
+"props.setProperty("javax.xml.registry.queryManagerURL", "
+"queryurl);\n"
+"props.setProperty("javax.xml.registry.lifeCycleManagerURL", "
+"puburl);\n"
+" \n"
+"String transportClass = System.getProperty("juddi.proxy."
+"transportClass", \n"
+" "org.jboss.jaxr.juddi."
+"transport.SaajTransport");\n"
+"System.setProperty("juddi.proxy.transportClass", transportClass);\n"
+" \n"
+"// Create the connection, passing it the configuration properties\n"
+"factory = ConnectionFactory.newInstance();\n"
+"factory.setProperties(props);\n"
+"connection = factory.createConnection();"
#. Tag: para
#: Web_Services.xml:1611
#, no-c-format
msgid "Authentication with the registry."
-msgstr ""
+msgstr "通过注册表的验证。"
#. Tag: programlisting
#: Web_Services.xml:1614
@@ -4363,12 +4593,24 @@
"connection.setCredentials(creds);\n"
"}"
msgstr ""
+"/**\n"
+"* Does authentication with the uddi registry\n"
+"*/\n"
+"protected void login() throws JAXRException\n"
+"{\n"
+"PasswordAuthentication passwdAuth = new PasswordAuthentication(userid, "
+"passwd.toCharArray());\n"
+"Set creds = new HashSet();\n"
+"creds.add(passwdAuth);\n"
+" \n"
+"connection.setCredentials(creds);\n"
+"}"
#. Tag: para
#: Web_Services.xml:1615
#, no-c-format
msgid "Save a Business"
-msgstr ""
+msgstr "保存商业"
#. Tag: programlisting
#: Web_Services.xml:1618
@@ -4441,12 +4683,78 @@
"return org;\n"
"}"
msgstr ""
+"/**\n"
+"* Creates a Jaxr Organization with 1 or more services\n"
+"*/\n"
+"protected Organization createOrganization(String orgname) throws "
+"JAXRException\n"
+"{\n"
+"Organization org = blm.createOrganization(getIString(orgname));\n"
+"org.setDescription(getIString("JBoss Inc"));\n"
+"Service service = blm.createService(getIString("JBOSS JAXR "
+"Service"));\n"
+"service.setDescription(getIString("Services of XML Registry"));\n"
+"//Create serviceBinding\n"
+"ServiceBinding serviceBinding = blm.createServiceBinding();\n"
+"serviceBinding.setDescription(blm.createInternationalString("Test "
+"Service Binding"));\n"
+" \n"
+"//Turn validation of URI off\n"
+"serviceBinding.setValidateURI(false);\n"
+"serviceBinding.setAccessURI("http://testjboss.org");\n"
+".. \n"
+"// Add the serviceBinding to the service\n"
+"service.addServiceBinding(serviceBinding);\n"
+" \n"
+"User user = blm.createUser();\n"
+"org.setPrimaryContact(user);\n"
+"PersonName personName = blm.createPersonName("Anil S");\n"
+"TelephoneNumber telephoneNumber = blm.createTelephoneNumber();\n"
+"telephoneNumber.setNumber("111-111-7777");\n"
+"telephoneNumber.setType(null);\n"
+"PostalAddress address = blm.createPostalAddress("111", "My "
+"Drive", "BuckHead", "GA", "USA", "
+""1111-111", "");\n"
+"Collection postalAddresses = new ArrayList();\n"
+"postalAddresses.add(address);\n"
+"Collection emailAddresses = new ArrayList();\n"
+"EmailAddress emailAddress = blm.createEmailAddress("anil at apache."
+"org");\n"
+"emailAddresses.add(emailAddress);\n"
+" \n"
+"Collection numbers = new ArrayList();\n"
+"numbers.add(telephoneNumber);\n"
+"user.setPersonName(personName);\n"
+"user.setPostalAddresses(postalAddresses);\n"
+"user.setEmailAddresses(emailAddresses);\n"
+"user.setTelephoneNumbers(numbers);\n"
+" \n"
+"ClassificationScheme cScheme = getClassificationScheme("ntis-gov:"
+"naics", "");\n"
+"Key cKey = blm.createKey("uuid:C0B9FE13-324F-413D-5A5B-"
+"2004DB8E5CC2");\n"
+"cScheme.setKey(cKey);\n"
+"Classification classification = blm.createClassification(cScheme, \n"
+" "Computer Systems Design and Related "
+"Services", "5415");\n"
+"org.addClassification(classification);\n"
+"ClassificationScheme cScheme1 = getClassificationScheme("D-U-N-S", "
+""");\n"
+"Key cKey1 = blm.createKey("uuid:3367C81E-FF1F-4D5A-B202-"
+"3EB13AD02423");\n"
+"cScheme1.setKey(cKey1);\n"
+"ExternalIdentifier ei = blm.createExternalIdentifier(cScheme1, "D-U-N-S "
+"number", "08-146-6849");\n"
+"org.addExternalIdentifier(ei);\n"
+"org.addService(service);\n"
+"return org;\n"
+"}"
#. Tag: para
#: Web_Services.xml:1619
#, no-c-format
msgid "Query a Business"
-msgstr ""
+msgstr "查询商业"
#. Tag: programlisting
#: Web_Services.xml:1622
@@ -4505,6 +4813,58 @@
"}\n"
"}"
msgstr ""
+"/**\n"
+"* Locale aware Search a business in the registry\n"
+"*/\n"
+"public void searchBusiness(String bizname) throws JAXRException\n"
+"{\n"
+"try\n"
+"{\n"
+"// Get registry service and business query manager\n"
+"this.getJAXREssentials();\n"
+" \n"
+"// Define find qualifiers and name patterns\n"
+"Collection findQualifiers = new ArrayList();\n"
+"findQualifiers.add(FindQualifier.SORT_BY_NAME_ASC);\n"
+"Collection namePatterns = new ArrayList();\n"
+"String pattern = "%" + bizname + "%";\n"
+"LocalizedString ls = blm.createLocalizedString(Locale.getDefault(), "
+"pattern);\n"
+"namePatterns.add(ls);\n"
+" \n"
+"// Find based upon qualifier type and values\n"
+"BulkResponse response = bqm.findOrganizations(findQualifiers, namePatterns, "
+"null, null, null, null);\n"
+" \n"
+"// check how many organisation we have matched\n"
+"Collection orgs = response.getCollection();\n"
+"if (orgs == null)\n"
+"{\n"
+"log.debug(" -- Matched 0 orgs");\n"
+" \n"
+"}\n"
+"else\n"
+"{\n"
+"log.debug(" -- Matched " + orgs.size() + " organizations -- "
+"");\n"
+" \n"
+"// then step through them\n"
+"for (Iterator orgIter = orgs.iterator(); orgIter.hasNext();)\n"
+"{\n"
+"Organization org = (Organization)orgIter.next();\n"
+"log.debug("Org name: " + getName(org));\n"
+"log.debug("Org description: " + getDescription(org));\n"
+"log.debug("Org key id: " + getKey(org));\n"
+"checkUser(org);\n"
+"checkServices(org);\n"
+"}\n"
+"}\n"
+"}\n"
+"finally\n"
+"{\n"
+"connection.close();\n"
+"}\n"
+"}"
#. Tag: para
#: Web_Services.xml:1623
@@ -4512,13 +4872,13 @@
msgid ""
"For more examples of code using the JAXR API, please refer to the resources "
"in the Resources Section."
-msgstr ""
+msgstr "关于使用 JAXR API 的更多例子,请参考资源章节的内容。"
#. Tag: title
#: Web_Services.xml:1629
#, no-c-format
msgid "Troubleshooting"
-msgstr ""
+msgstr "故障解除"
#. Tag: para
#: Web_Services.xml:1632
@@ -4528,6 +4888,8 @@
"emphasis> Please check the inquiry and publish url passed to the JAXR "
"ConnectionFactory."
msgstr ""
+"<emphasis role=\"bold\">I cannot connect to the registry from JAXR.</"
+"emphasis> 请检查查询语句并把 publish URL 传递给 JAXR 的连接工厂。"
#. Tag: para
#: Web_Services.xml:1637
@@ -4537,7 +4899,7 @@
"Please check the jUDDI configuration and see if there are any errors in the "
"server.log. And also remember that the jUDDI registry is available only in "
"the \"all\" configuration."
-msgstr ""
+msgstr "<emphasis role=\"bold\">I cannot connect to the jUDDI registry.</emphasis> 请检查 jUDDI 配置并查看 server.log 里是否有任何错误。也请记住 jUDDI 注册表只在 \"all\" 配置里才可用。"
#. Tag: para
#: Web_Services.xml:1642
@@ -4547,6 +4909,8 @@
"emphasis>Have you added an authorized user to the jUDDI database, as "
"described earlier in the chapter?"
msgstr ""
+"<emphasis role=\"bold\">I cannot authenticate to the jUDDI registry.</"
+"emphasis> 如本章前面所描述的,你已经在 jUDDI 数据库里添加了授权用户吗?"
#. Tag: para
#: Web_Services.xml:1647
@@ -4557,6 +4921,9 @@
"tool to view the messages in transit. <ulink url=\"http://tcpmon.dev.java."
"net/\">TCPMon</ulink>"
msgstr ""
+"<emphasis role=\"bold\">I would like to view the SOAP messages in transit "
+"between the client and the UDDI Registry.</emphasis> 请使用 tcpmon 工具来查看传输消息。<ulink url=\"http://tcpmon.dev.java."
+"net/\">TCPMon</ulink>"
#. Tag: title
#: Web_Services.xml:1655
@@ -4634,15 +5001,15 @@
#. Tag: title
#: Web_Services.xml:1692
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Specification"
-msgstr "Notifications"
+msgstr "规格"
#. Tag: para
#: Web_Services.xml:1693
#, no-c-format
msgid "WS-Policy is defined by the combination of the following specifications:"
-msgstr ""
+msgstr "WS-Policy 由下列的规格组合定义而成:"
#. Tag: programlisting
#: Web_Services.xml:1696
@@ -4653,12 +5020,16 @@
"* <ulink url=\"http://www.w3.org/Submission/WS-PolicyAttachment/\"> WS-"
"Policy-Attachment specification</ulink>"
msgstr ""
+"* <ulink url=\"http://www.w3.org/Submission/WS-Policy/\"> WS-Policy "
+"specification</ulink>\n"
+"* <ulink url=\"http://www.w3.org/Submission/WS-PolicyAttachment/\"> WS-"
+"Policy-Attachment specification</ulink>"
#. Tag: title
#: Web_Services.xml:1700
#, no-c-format
msgid "Using policies in a user provided wsdl"
-msgstr ""
+msgstr "在用户提供的 wsdl 里使用策略"
#. Tag: para
#: Web_Services.xml:1701
@@ -4669,7 +5040,7 @@
"skip wsdl generation at deploy time, since the wsdl file you provided will "
"be published. Please refer to specification (WS-Policy-Attachment) to learn "
"how to modify wsdl to attach a policy."
-msgstr ""
+msgstr "为了以这种方式附加策略,你唯一要做的是在 webservice 类里提供自定义的 wsdl。既然你提供的 wsdl 文件将被发布,这就使得 JBossws 在部署时跳过 wsdl 的生成。请参考相关规格(WS-Policy-Attachment)来学习如何修改 wsdl 以附加策略。"
#. Tag: para
#: Web_Services.xml:1704
@@ -4677,7 +5048,7 @@
msgid ""
"Here you find an example of a webservice class and provided wsdl with a "
"policy containing a domain assertion for JBoss wssecurity."
-msgstr ""
+msgstr "在这里你会找到一个 webservice 类的例子,它提供了带有包含 JBoss wssecurity 域判断的策略的 wsdl 文件。"
#. Tag: programlisting
#: Web_Services.xml:1707
@@ -4776,6 +5147,98 @@
"</service>\n"
"</definitions>"
msgstr ""
+"@WebService(name = "Hello", \n"
+"targetNamespace = "http://org.jboss.ws/samples/wssecuritypolicy",\n"
+"wsdlLocation="WEB-INF/wsdl/HelloService.wsdl")\n"
+"@SOAPBinding(style = SOAPBinding.Style.RPC)\n"
+"public class HelloJavaBean\n"
+"{\n"
+"private Logger log = Logger.getLogger(HelloJavaBean.class);\n"
+"..\n"
+"@WebMethod\n"
+"public UserType echoUserType(@WebParam(name = "user") UserType "
+"in0)\n"
+"{\n"
+"log.info(in0);\n"
+"return in0;\n"
+"}\n"
+"}\n"
+"<?xml version="1.0" encoding="UTF-8"?>\n"
+"<definitions name='HelloService' targetNamespace='http://"
+"org.jboss.ws/samples/wssecuritypolicy' xmlns='http://schemas."
+"xmlsoap.org/wsdl/' xmlns:ns1='http://org.jboss.ws/samples/"
+"wssecurity' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/"
+"' xmlns:tns='http://org.jboss.ws/samples/wssecuritypolicy' "
+"xmlns:wsp='http://schemas.xmlsoap.org/ws/2004/09/policy' xmlns:"
+"xsd='http://www.w3.org/2001/XMLSchema'>\n"
+"<types>\n"
+"<xs:schema targetNamespace='http://org.jboss.ws/samples/"
+"wssecurity' version='1.0' \n"
+" xmlns:xs='http://www.w3.org/2001/XMLSchema'>\n"
+"<xs:complexType name='UserType'>\n"
+"<xs:sequence>\n"
+"<xs:element minOccurs='0' name='msg' type='xs:"
+"string'/>\n"
+"</xs:sequence>\n"
+"</xs:complexType>\n"
+"</xs:schema>\n"
+"</types>\n"
+"<wsp:Policy wsu:Id='X509EndpointPolicy'\n"
+" xmlns:wsu='http://docs.oasis-open.org/wss/2004/01/oasis-200401-"
+"wss-wssecurity-utility-1.0.xsd'>\n"
+"<wsp:All>\n"
+"<sp:jboss-ws-security xmlns:sp='http://www.jboss.com/ws-security/"
+"schema/jboss-ws-security_1_0.xsd'>\n"
+"<sp:key-store-file>WEB-INF/wsse.keystore</sp:key-store-file>\n"
+"<sp:key-store-password>jbossws</sp:key-store-password>\n"
+"<sp:trust-store-file>WEB-INF/wsse.truststore</sp:trust-store-"
+"file>\n"
+"<sp:trust-store-password>jbossws</sp:trust-store-password>\n"
+"<sp:config>\n"
+"<sp:encrypt alias='wsse' type='x509v3'/>\n"
+"<sp:requires>\n"
+"<sp:encryption/>\n"
+"</sp:requires>\n"
+"</sp:config>\n"
+"</sp:jboss-ws-security>\n"
+"</wsp:All>\n"
+"</wsp:Policy>\n"
+"<message name='Hello_echoUserType'>\n"
+"<part name='user' type='ns1:UserType'/>\n"
+"</message>\n"
+"<message name='Hello_echoUserTypeResponse'>\n"
+"<part name='return' type='ns1:UserType'/>\n"
+"</message>\n"
+"<portType name='Hello'>\n"
+"<operation name='echoUserType' parameterOrder='user'"
+">\n"
+"<input message='tns:Hello_echoUserType'/>\n"
+"<output message='tns:Hello_echoUserTypeResponse'/>\n"
+"</operation>\n"
+"</portType>\n"
+"<binding name='HelloBinding' type='tns:Hello'>\n"
+"<wsp:PolicyReference URI='#X509EndpointPolicy'/>\n"
+"<soap:binding style='rpc' transport='http://schemas."
+"xmlsoap.org/soap/http'/>\n"
+"<operation name='echoUserType'>\n"
+"<soap:operation soapAction=''/>\n"
+"<input>\n"
+"<soap:body namespace='http://org.jboss.ws/samples/"
+"wssecuritypolicy' use='literal'/>\n"
+"</input>\n"
+"<output>\n"
+"<soap:body namespace='http://org.jboss.ws/samples/"
+"wssecuritypolicy' use='literal'/>\n"
+"</output>\n"
+"</operation>\n"
+"</binding>\n"
+"<service name='HelloService'>\n"
+"<port binding='tns:HelloBinding' name='HelloPort'"
+">\n"
+"<soap:address location='REPLACE_WITH_ACTUAL_URL'/>\n"
+"</port>\n"
+"</service>\n"
+"</definitions>"
#. Tag: para
#: Web_Services.xml:1708
@@ -4784,12 +5247,14 @@
"Please note in the wsdl file the wsp:Policy element and the wsp:"
"PolicyReference in 'HelloBinding' binding Element."
msgstr ""
+"请注意 wsdl 文件里的 wsp:Policy 元素以及 'HelloBinding' binding 元素里的 wsp:"
+"PolicyReference。"
#. Tag: title
#: Web_Services.xml:1714
#, no-c-format
msgid "Using policies with JBoss annotations"
-msgstr ""
+msgstr "在 JBoss 注解里使用策略"
#. Tag: para
#: Web_Services.xml:1715
@@ -4797,7 +5262,7 @@
msgid ""
"Using JBoss proprietary annotation you only have to provide the policy xml, "
"leaving wsdl generation to the JBossWS deployer."
-msgstr ""
+msgstr "要使用 JBoss 专有的注解,你必须提供 policy xml,从而把 wsdl 的生成留给 JBossWS deployer。"
#. Tag: para
#: Web_Services.xml:1718
@@ -4810,7 +5275,7 @@
"annotation to provide needed metadata directly as annotation parameters. The "
"current @Policy annotation takes a reference to a xml file containing a "
"generic policy description written respecting ws-policy specification rules."
-msgstr ""
+msgstr "你可以使用两种注解,第一种(@PolicyAttachment)包含第二种(@Policy)的队列:这让你可以把多个策略附加到类或方法上。将来的域策略实现可能带有域注解,它扩展 @Policy 注解以把所需的元数据作为参数提供。目前的 @Policy 策略引用包含关于 ws-policy 规则的普通策略描述的 XML 文件。"
#. Tag: programlisting
#: Web_Services.xml:1721
@@ -4832,6 +5297,21 @@
"public PolicyScopeLevel scope();\n"
"}"
msgstr ""
+"/**\n"
+" \n"
+"@Target(ElementType.TYPE) \n"
+"@Retention(RetentionPolicy.RUNTIME)\n"
+"public @interface PolicyAttachment {\n"
+"Policy[] value();\n"
+"}\n"
+"...\n"
+"@Retention(RetentionPolicy.RUNTIME)\n"
+"public @interface Policy {\n"
+" \n"
+"public String policyFileLocation();\n"
+" \n"
+"public PolicyScopeLevel scope();\n"
+"}"
#. Tag: para
#: Web_Services.xml:1722
@@ -4839,7 +5319,7 @@
msgid ""
"And here you have the previous section example re-implemented using "
"annotations and xml policy file:"
-msgstr ""
+msgstr "这里你会用注解和 XML 策略文件重新实现前一节的例子:"
#. Tag: programlisting
#: Web_Services.xml:1725
@@ -4888,24 +5368,66 @@
"</wsp:ExactlyOne> \n"
"</wsp:Policy>"
msgstr ""
+"@WebService(name = "Hello", targetNamespace = "http://org."
+"jboss.ws/samples/wssecurityAnnotatedpolicy")\n"
+"@PolicyAttachment({@Policy( policyFileLocation="WEB-INF/Policy."
+"xml", scope = PolicyScopeLevel.WSDL_PORT ) })\n"
+"@SOAPBinding(style = SOAPBinding.Style.RPC)\n"
+"public class HelloJavaBean\n"
+"{\n"
+"private Logger log = Logger.getLogger(HelloJavaBean.class);\n"
+" \n"
+"@WebMethod\n"
+"public UserType echoUserType(@WebParam(name = "user") UserType "
+"in0)\n"
+"{\n"
+"log.info(in0);\n"
+"return in0;\n"
+"}\n"
+"}\n"
+"<?xml version="1.0" encoding="UTF-8"?>\n"
+"...\n"
+"<wsp:Policy wsu:Id="X509EndpointPolicy" xmlns:wsp="http://"
+"schemas.xmlsoap.org/ws/2004/09/policy" \n"
+"xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-"
+"wssecurity-utility-1.0.xsd">\n"
+"<wsp:ExactlyOne>\n"
+"<wsp:All>\n"
+"<sp:jboss-ws-security xmlns:sp="http://www.jboss.com/ws-security/"
+"schema/jboss-ws-security_1_0.xsd">\n"
+"<sp:key-store-file>WEB-INF/wsse.keystore</sp:key-store-file>\n"
+"<sp:key-store-password>jbossws</sp:key-store-password>\n"
+"<sp:trust-store-file>WEB-INF/wsse.truststore</sp:trust-store-"
+"file>\n"
+"<sp:trust-store-password>jbossws</sp:trust-store-password>\n"
+"<sp:config>\n"
+"<sp:encrypt type="x509v3" alias="wsse"/>\n"
+"<sp:requires>\n"
+"<sp:encryption/>\n"
+"</sp:requires>\n"
+"</sp:config>\n"
+"</sp:jboss-ws-security>\n"
+"</wsp:All>\n"
+"</wsp:ExactlyOne> \n"
+"</wsp:Policy>"
#. Tag: title
#: Web_Services.xml:1733
#, no-c-format
msgid "JBossWS Extensions"
-msgstr ""
+msgstr "JBossWS 扩展"
#. Tag: para
#: Web_Services.xml:1734
#, no-c-format
msgid "This section describes propriatary JBoss extensions to JAX-WS."
-msgstr ""
+msgstr "本节描述 JBoss 专有的对 JAX-WS 的扩展。"
#. Tag: title
#: Web_Services.xml:1738
#, no-c-format
msgid "Proprietary Annotations"
-msgstr ""
+msgstr "专有的注解"
#. Tag: para
#: Web_Services.xml:1739
@@ -4915,12 +5437,15 @@
"\"http://jbws.dyndns.org/mediawiki/index.php?title=JAX-WS_Annotations\">JAX-"
"WS Annotations</ulink>"
msgstr ""
+"关于标准注解的集合,请参考 <ulink url="
+"\"http://jbws.dyndns.org/mediawiki/index.php?title=JAX-WS_Annotations\">JAX-"
+"WS Annotations</ulink>"
#. Tag: title
#: Web_Services.xml:1743
#, no-c-format
msgid "EndpointConfig"
-msgstr ""
+msgstr "EndpointConfig"
#. Tag: programlisting
#: Web_Services.xml:1744
@@ -4957,12 +5482,42 @@
"String configFile() default "";\n"
"}"
msgstr ""
+"/**\n"
+"* Defines an endpoint or client configuration. \n"
+"* This annotation is valid on an endpoint implementaion bean or a SEI.\n"
+"* \n"
+"* @author Heiko.Braun at jboss.org\n"
+"* @since 16.01.2007\n"
+"*/\n"
+"@Retention(value = RetentionPolicy.RUNTIME)\n"
+"@Target(value = { ElementType.TYPE })\n"
+"public @interface EndpointConfig {\n"
+"... \n"
+"/**\n"
+"* The optional config-name element gives the configuration name that must be "
+"present in\n"
+"* the configuration given by element config-file.\n"
+"* \n"
+"* Server side default: Standard Endpoint\n"
+"* Client side default: Standard Client\n"
+"*/\n"
+"String configName() default "";\n"
+"...\n"
+"/**\n"
+"* The optional config-file element is a URL or resource name for the "
+"configuration.\n"
+"*\n"
+"* Server side default: standard-jaxws-endpoint-config.xml\n"
+"* Client side default: standard-jaxws-client-config.xml\n"
+"*/\n"
+"String configFile() default "";\n"
+"}"
#. Tag: title
#: Web_Services.xml:1748
-#, fuzzy, no-c-format
+#, no-c-format
msgid "WebContext"
-msgstr "上下文"
+msgstr "WebContext"
#. Tag: programlisting
#: Web_Services.xml:1749
@@ -5041,12 +5596,84 @@
"boolean secureWSDLAccess() default true;\n"
"}"
msgstr ""
+"/**\n"
+"* Provides web context specific meta data to EJB based web service "
+"endpoints.\n"
+"*\n"
+"* @author thomas.diesler at jboss.org\n"
+"* @since 26-Apr-2005\n"
+"*/\n"
+"@Retention(value = RetentionPolicy.RUNTIME)\n"
+"@Target(value = { ElementType.TYPE })\n"
+"public @interface WebContext {\n"
+"... \n"
+"/** \n"
+"* The contextRoot element specifies the context root that the web service "
+"endpoint is deployed to.\n"
+"* If it is not specified it will be derived from the deployment short name.\n"
+"* \n"
+"* Applies to server side port components only. \n"
+"*/\n"
+"String contextRoot() default "";\n"
+"...\n"
+"/** \n"
+"* The virtual hosts that the web service endpoint is deployed to.\n"
+"* \n"
+"* Applies to server side port components only.\n"
+"*/\n"
+"String[] virtualHosts() default {};\n"
+" \n"
+"/** \n"
+"* Relative path that is appended to the contextRoot to form fully qualified\n"
+"* endpoint address for the web service endpoint.\n"
+"* \n"
+"* Applies to server side port components only. \n"
+"*/\n"
+"String urlPattern() default "";\n"
+" \n"
+"/**\n"
+"* The authMethod is used to configure the authentication mechanism for the "
+"web service. \n"
+"* As a prerequisite to gaining access to any web service which are protected "
+"by an authorization\n"
+"* constraint, a user must have authenticated using the configured "
+"mechanism.\n"
+"*\n"
+"* Legal values for this element are "BASIC", or "CLIENT-"
+"CERT".\n"
+"*/\n"
+"String authMethod() default "";\n"
+" \n"
+"/**\n"
+"* The transportGuarantee specifies that the communication\n"
+"* between client and server should be NONE, INTEGRAL, or\n"
+"* CONFIDENTIAL. NONE means that the application does not require any\n"
+"* transport guarantees. A value of INTEGRAL means that the application\n"
+"* requires that the data sent between the client and server be sent in\n"
+"* such a way that it can't be changed in transit. CONFIDENTIAL means\n"
+"* that the application requires that the data be transmitted in a\n"
+"* fashion that prevents other entities from observing the contents of\n"
+"* the transmission. In most cases, the presence of the INTEGRAL or\n"
+"* CONFIDENTIAL flag will indicate that the use of SSL is required.\n"
+"*/\n"
+"String transportGuarantee() default "";\n"
+" \n"
+"/**\n"
+"* A secure endpoint does not by default publish it's wsdl on an "
+"unsecure transport.\n"
+"* You can override this behaviour by explicitly setting the secureWSDLAccess "
+"flag to false.\n"
+"* \n"
+"* Protect access to WSDL. See http://jira.jboss.org/jira/browse/JBWS-723 \n"
+"*/\n"
+"boolean secureWSDLAccess() default true;\n"
+"}"
#. Tag: title
#: Web_Services.xml:1753
#, no-c-format
msgid "SecurityDomain"
-msgstr ""
+msgstr "SecurityDomain"
#. Tag: programlisting
#: Web_Services.xml:1754
@@ -5077,4 +5704,28 @@
"String unauthenticatedPrincipal() default "";\n"
"}"
msgstr ""
+"/**\n"
+"* Annotation for specifying the JBoss security domain for an EJB\n"
+"* \n"
+"* @author <a href="mailto:bill at jboss.org">Bill Burke</"
+"a>\n"
+"**/\n"
+"@Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME)\n"
+"public @interface SecurityDomain\n"
+"{\n"
+"/**\n"
+"* The required name for the security domain.\n"
+"* \n"
+"* Do not use the JNDI name\n"
+"* \n"
+"* Good: "MyDomain"\n"
+"* Bad: "java:/jaas/MyDomain"\n"
+"*/\n"
+"String value();\n"
+" \n"
+"/**\n"
+"* The name for the unauthenticated pricipal\n"
+"*/\n"
+"String unauthenticatedPrincipal() default "";\n"
+"}"
More information about the jboss-cvs-commits
mailing list