[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 @@
 "&gt;\n"
 "&lt;/message&gt;"
 msgstr ""
+"&lt;complexType name=&#39;concatType&#39;&gt;\n"
+"        &lt;sequence&gt;\n"
+"                &lt;element name=&#39;String_1&#39; nillable=&#39;true&#39; "
+"type=&#39;string&#39;/&gt;\n"
+"                &lt;element name=&#39;long_1&#39; type=&#39;long&#39;/&gt;\n"
+"        &lt;/sequence&gt;\n"
+"        &lt;/complexType&gt;\n"
+"        &lt;element name=&#39;concat&#39; type=&#39;tns:concatType&#39;/"
+"&gt;\n"
+"        Therefore, message parts must refer to an element from the schema. \n"
+"        &lt;message name=&#39;EndpointInterface_concat&#39;&gt;\n"
+"                &lt;part name=&#39;parameters&#39; element=&#39;tns:"
+"concat&#39;/&gt;\n"
+"        &lt;/message&gt;\n"
+"The following message definition is invalid. \n"
+"&lt;message name=&#39;EndpointInterface_concat&#39;&gt;\n"
+"        &lt;part name=&#39;parameters&#39; type=&#39;tns:concatType&#39;/"
+"&gt;\n"
+"&lt;/message&gt;"
 
 #. 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 @@
 "&lt;/env:Body&gt;\n"
 "&lt;/env:Envelope&gt;"
 msgstr ""
+"&lt;env:Envelope xmlns:env=&apos;http://schemas.xmlsoap.org/soap/envelope/"
+"&apos;&gt;\n"
+"&lt;env:Header xmlns:wsa=&apos;http://schemas.xmlsoap.org/ws/2004/08/"
+"addressing&apos;&gt;\n"
+"&lt;wsa:To&gt;uri:jbossws-samples-wsaddr/TestService&lt;/wsa:To&gt;\n"
+"&lt;wsa:Action&gt;http://org.jboss.ws/addressing/stateful/action&lt;/wsa:"
+"Action&gt;\n"
+"&lt;wsa:ReferenceParameters&gt;\n"
+"&lt;ns1:clientid xmlns:ns1=&apos;http://somens&apos;&gt;clientid-1&lt;/ns1:"
+"clientid&gt;\n"
+"&lt;/wsa:ReferenceParameters&gt;\n"
+"&lt;/env:Header&gt;\n"
+"&lt;env:Body&gt;\n"
+"&lt;ns1:addItem xmlns:ns1=&apos;http://org.jboss.ws/samples/wsaddr&apos;"
+"&gt;\n"
+"&lt;String_1&gt;Ice Cream&lt;/String_1&gt;\n"
+"&lt;/ns1:addItem&gt;\n"
+"&lt;/env:Body&gt;\n"
+"&lt;/env:Envelope&gt;\n"
+"  \n"
+"&lt;env:Envelope xmlns:env=&apos;http://schemas.xmlsoap.org/soap/envelope/"
+"&apos;&gt;\n"
+"&lt;env:Header xmlns:wsa=&apos;http://schemas.xmlsoap.org/ws/2004/08/"
+"addressing&apos;&gt;\n"
+"&lt;wsa:To&gt;http://www.w3.org/2005/08/addressing/anonymous&lt;/wsa:To&gt;\n"
+"&lt;wsa:Action&gt;http://org.jboss.ws/addressing/stateful/actionReply&lt;/"
+"wsa:Action&gt;\n"
+"&lt;ns1:clientid xmlns:ns1=&apos;http://somens&apos;&gt;clientid-1&lt;/ns1:"
+"clientid&gt;\n"
+"&lt;/env:Header&gt;\n"
+"&lt;env:Body&gt;\n"
+"&lt;ns1:addItemResponse xmlns:ns1=&apos;http://org.jboss.ws/samples/"
+"wsaddr&apos;/&gt;\n"
+"&lt;/env:Body&gt;\n"
+"&lt;/env:Envelope&gt;\n"
+"  \n"
+"...\n"
+"  \n"
+"&lt;env:Envelope xmlns:env=&apos;http://schemas.xmlsoap.org/soap/envelope/"
+"&apos;&gt;\n"
+"&lt;env:Header xmlns:wsa=&apos;http://schemas.xmlsoap.org/ws/2004/08/"
+"addressing&apos;&gt;\n"
+"&lt;wsa:To&gt;uri:jbossws-samples-wsaddr/TestService&lt;/wsa:To&gt;\n"
+"&lt;wsa:Action&gt;http://org.jboss.ws/addressing/stateful/action&lt;/wsa:"
+"Action&gt;\n"
+"&lt;wsa:ReferenceParameters&gt;\n"
+"&lt;ns1:clientid xmlns:ns1=&apos;http://somens&apos;&gt;clientid-1&lt;/ns1:"
+"clientid&gt;\n"
+"&lt;/wsa:ReferenceParameters&gt;\n"
+"&lt;/env:Header&gt;\n"
+"&lt;env:Body&gt;\n"
+"&lt;ns1:getItems xmlns:ns1=&apos;http://org.jboss.ws/samples/wsaddr&apos;/"
+"&gt;\n"
+"&lt;/env:Body&gt;\n"
+"&lt;/env:Envelope&gt;\n"
+"  \n"
+"&lt;env:Envelope xmlns:env=&apos;http://schemas.xmlsoap.org/soap/envelope/"
+"&apos;&gt;\n"
+"&lt;env:Header xmlns:wsa=&apos;http://schemas.xmlsoap.org/ws/2004/08/"
+"addressing&apos;&gt;\n"
+"&lt;wsa:To&gt;http://www.w3.org/2005/08/addressing/anonymous&lt;/wsa:To&gt;\n"
+"&lt;wsa:Action&gt;http://org.jboss.ws/addressing/stateful/actionReply&lt;/"
+"wsa:Action&gt;\n"
+"&lt;ns1:clientid xmlns:ns1=&apos;http://somens&apos;&gt;clientid-1&lt;/ns1:"
+"clientid&gt;\n"
+"&lt;/env:Header&gt;\n"
+"&lt;env:Body&gt;\n"
+"&lt;ns1:getItemsResponse xmlns:ns1=&apos;http://org.jboss.ws/samples/"
+"wsaddr&apos;&gt;\n"
+"&lt;result&gt;[Ice Cream, Ferrari]&lt;/result&gt;\n"
+"&lt;/ns1:getItemsResponse&gt;\n"
+"&lt;/env:Body&gt;\n"
+"&lt;/env:Envelope&gt;"
 
 #. 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"
 "&lt;/wsdl:definitions&gt;"
 msgstr ""
+"&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\n"
+"  \n"
+"&lt;wsdl:definitions\n"
+"targetNamespace=&quot;http://www.jboss.org/sysmon&quot;\n"
+"xmlns:tns=&quot;http://www.jboss.org/sysmon&quot;\n"
+"xmlns:wse=&apos;http://schemas.xmlsoap.org/ws/2004/08/eventing&apos;\n"
+"xmlns:wsdl=&apos;http://schemas.xmlsoap.org/wsdl/&apos;\n"
+"xmlns:wsa10=&apos;http://www.w3.org/2005/08/addressing&apos;\n"
+"xmlns:xs=&apos;http://www.w3.org/2001/XMLSchema&apos;\n"
+"xmlns:soap=&quot;http://schemas.xmlsoap.org/wsdl/soap/&quot;&gt;\n"
+"  \n"
+"&lt;wsdl:import\n"
+"(1)        namespace=&apos;http://schemas.xmlsoap.org/ws/2004/08/"
+"eventing&apos;\n"
+"location=&apos;jbwse.wsdl&apos; /&gt;\n"
+"  \n"
+"&lt;wsdl:types&gt;\n"
+"  \n"
+"&lt;xs:schema targetNamespace=&apos;http://schemas.xmlsoap.org/ws/2004/08/"
+"eventing&apos;&gt;\n"
+"(2)      &lt;xs:include schemaLocation=&apos;jbwse.xsd&apos;/&gt;\n"
+"&lt;/xs:schema&gt;\n"
+"  \n"
+"(3)   &lt;xs:schema\n"
+"targetNamespace=&quot;http://www.jboss.org/sysmon&quot;\n"
+"elementFormDefault=&quot;qualified&quot;\n"
+"blockDefault=&quot;#all&quot;&gt;\n"
+"&lt;xs:element name=&quot;SystemStatus&quot;&gt;\n"
+"&lt;xs:complexType&gt;\n"
+"&lt;xs:sequence&gt;\n"
+"&lt;xs:element name=&quot;Time &quot; type=&quot;xs:dateTime&quot;/&gt;\n"
+"&lt;xs:element name=&quot;HostName&quot; type=&quot;xs:string&quot;/&gt;\n"
+"&lt;xs:element name=&quot;HostAddress&quot; type=&quot;xs:string&quot;/&gt;\n"
+"&lt;xs:element name=&quot;ActiveThreadCount&quot; type=&quot;xs:int&quot;/"
+"&gt;\n"
+"&lt;xs:element name=&quot;FreeMemory&quot; type=&quot;xs:string&quot;/&gt;\n"
+"&lt;xs:element name=&quot;MaxMemory&quot; type=&quot;xs:string&quot;/&gt;\n"
+"&lt;/xs:sequence&gt;\n"
+"&lt;/xs:complexType&gt;\n"
+"&lt;/xs:element&gt;\n"
+"&lt;/xs:schema&gt;\n"
+"  \n"
+"&lt;/wsdl:types&gt;\n"
+"  \n"
+"&lt;wsdl:message name=&apos;SystemInfoMsg&apos;&gt;\n"
+"&lt;wsdl:part name=&apos;body&apos; element=&apos;tns:SystemStatus&apos;/"
+"&gt;\n"
+"&lt;/wsdl:message&gt;\n"
+"  \n"
+"(4) &lt;wsdl:portType name=&apos;SystemInfo&apos; wse:EventSource=&apos;"
+"true&apos;&gt;\n"
+"&lt;wsdl:operation name=&apos;SysmonOp&apos;&gt;\n"
+"&lt;wsdl:output message=&apos;tns:SystemInfoMsg&apos;/&gt;\n"
+"&lt;/wsdl:operation&gt;\n"
+"&lt;/wsdl:portType&gt;\n"
+"  \n"
+"&lt;wsdl:binding name=&quot;SystemInfoBinding&quot; type=&quot;tns:"
+"SystemInfo&quot;&gt;\n"
+"&lt;soap:binding style=&quot;document&quot; transport=&quot;http://schemas."
+"xmlsoap.org/soap/http&quot;/&gt;\n"
+"&lt;wsdl:operation name=&quot;SysmonOp&quot;&gt;\n"
+"&lt;soap:operation soapAction=&quot;&quot;/&gt;\n"
+"&lt;wsdl:output&gt;\n"
+"&lt;soap:body use=&quot;literal&quot;/&gt;\n"
+"&lt;/wsdl:output&gt;\n"
+"&lt;/wsdl:operation&gt;\n"
+"&lt;/wsdl:binding&gt;\n"
+"  \n"
+"&lt;/wsdl:definitions&gt;"
 
 #. 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&#39;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 @@
 "&lt;attribute name=&quot;DataSourceUrl&quot;&gt;java:/DefaultDS&lt;/"
 "attribute&gt;"
 msgstr ""
+"&lt;!-- Datasource to Database--&gt;\n"
+"&lt;attribute name=&quot;DataSourceUrl&quot;&gt;java:/DefaultDS&lt;/"
+"attribute&gt;"
 
 #. 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 @@
 "                                                          &lt;attribute "
 "name=&quot;DropOnStart&quot;&gt;false&lt;/attribute&gt;"
 msgstr ""
+"&lt;!-- Should all tables be created on Start--&gt;\n"
+"                                                          &lt;attribute "
+"name=&quot;CreateOnStart&quot;&gt;false&lt;/attribute&gt;\n"
+"                                                          &lt;!-- Should all "
+"tables be dropped on Stop--&gt;\n"
+"                                                          &lt;attribute "
+"name=&quot;DropOnStop&quot;&gt;true&lt;/attribute&gt;\n"
+"                                                          &lt;!-- Should all "
+"tables be dropped on Start--&gt;\n"
+"                                                          &lt;attribute "
+"name=&quot;DropOnStart&quot;&gt;false&lt;/attribute&gt;"
 
 #. 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 --&gt;\n"
 "&lt;attribute name=&quot;BindJaxr&quot;&gt;JAXR&lt;/attribute&gt;"
 msgstr ""
+"&lt;!-- Should I bind a Context to which JaxrConnectionFactory bound--&gt;\n"
+"&lt;attribute name=&quot;ShouldBindJaxr&quot;&gt;true&lt;/attribute&gt;\n"
+"  \n"
+"&lt;!-- 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 --&gt;\n"
+"&lt;attribute name=&quot;BindJaxr&quot;&gt;JAXR&lt;/attribute&gt;"
 
 #. 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(&quot;jaxr.query.url&quot;, &quot;"
+"http://localhost:8080/juddi/inquiry&quot;);\n"
+"String puburl = System.getProperty(&quot;jaxr.publish.url&quot;, &quot;"
+"http://localhost:8080/juddi/publish&quot;);\n"
+".. \n"
+"Properties props = new Properties();\n"
+"props.setProperty(&quot;javax.xml.registry.queryManagerURL&quot;, "
+"queryurl);\n"
+"props.setProperty(&quot;javax.xml.registry.lifeCycleManagerURL&quot;, "
+"puburl);\n"
+"  \n"
+"String transportClass = System.getProperty(&quot;juddi.proxy."
+"transportClass&quot;, \n"
+"                                         &quot;org.jboss.jaxr.juddi."
+"transport.SaajTransport&quot;);\n"
+"System.setProperty(&quot;juddi.proxy.transportClass&quot;, 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(&quot;JBoss Inc&quot;));\n"
+"Service service = blm.createService(getIString(&quot;JBOSS JAXR "
+"Service&quot;));\n"
+"service.setDescription(getIString(&quot;Services of XML Registry&quot;));\n"
+"//Create serviceBinding\n"
+"ServiceBinding serviceBinding = blm.createServiceBinding();\n"
+"serviceBinding.setDescription(blm.createInternationalString(&quot;Test "
+"Service Binding&quot;));\n"
+"  \n"
+"//Turn validation of URI off\n"
+"serviceBinding.setValidateURI(false);\n"
+"serviceBinding.setAccessURI(&quot;http://testjboss.org&quot;);\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(&quot;Anil S&quot;);\n"
+"TelephoneNumber telephoneNumber = blm.createTelephoneNumber();\n"
+"telephoneNumber.setNumber(&quot;111-111-7777&quot;);\n"
+"telephoneNumber.setType(null);\n"
+"PostalAddress address = blm.createPostalAddress(&quot;111&quot;, &quot;My "
+"Drive&quot;, &quot;BuckHead&quot;, &quot;GA&quot;, &quot;USA&quot;, "
+"&quot;1111-111&quot;, &quot;&quot;);\n"
+"Collection postalAddresses = new ArrayList();\n"
+"postalAddresses.add(address);\n"
+"Collection emailAddresses = new ArrayList();\n"
+"EmailAddress emailAddress = blm.createEmailAddress(&quot;anil at apache."
+"org&quot;);\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(&quot;ntis-gov:"
+"naics&quot;, &quot;&quot;);\n"
+"Key cKey = blm.createKey(&quot;uuid:C0B9FE13-324F-413D-5A5B-"
+"2004DB8E5CC2&quot;);\n"
+"cScheme.setKey(cKey);\n"
+"Classification classification = blm.createClassification(cScheme, \n"
+"                     &quot;Computer Systems Design and Related "
+"Services&quot;, &quot;5415&quot;);\n"
+"org.addClassification(classification);\n"
+"ClassificationScheme cScheme1 = getClassificationScheme(&quot;D-U-N-S&quot;, "
+"&quot;&quot;);\n"
+"Key cKey1 = blm.createKey(&quot;uuid:3367C81E-FF1F-4D5A-B202-"
+"3EB13AD02423&quot;);\n"
+"cScheme1.setKey(cKey1);\n"
+"ExternalIdentifier ei = blm.createExternalIdentifier(cScheme1, &quot;D-U-N-S "
+"number&quot;, &quot;08-146-6849&quot;);\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 = &quot;%&quot; + bizname + &quot;%&quot;;\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(&quot; -- Matched 0 orgs&quot;);\n"
+"  \n"
+"}\n"
+"else\n"
+"{\n"
+"log.debug(&quot; -- Matched &quot; + orgs.size() + &quot; organizations -- "
+"&quot;);\n"
+"  \n"
+"// then step through them\n"
+"for (Iterator orgIter = orgs.iterator(); orgIter.hasNext();)\n"
+"{\n"
+"Organization org = (Organization)orgIter.next();\n"
+"log.debug(&quot;Org name: &quot; + getName(org));\n"
+"log.debug(&quot;Org description: &quot; + getDescription(org));\n"
+"log.debug(&quot;Org key id: &quot; + 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 @@
 "* &lt;ulink url=\"http://www.w3.org/Submission/WS-PolicyAttachment/\"&gt; WS-"
 "Policy-Attachment specification&lt;/ulink&gt;"
 msgstr ""
+"* &lt;ulink url=\"http://www.w3.org/Submission/WS-Policy/\"&gt; WS-Policy "
+"specification&lt;/ulink&gt;\n"
+"* &lt;ulink url=\"http://www.w3.org/Submission/WS-PolicyAttachment/\"&gt; WS-"
+"Policy-Attachment specification&lt;/ulink&gt;"
 
 #. 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 @@
 "&lt;/service&gt;\n"
 "&lt;/definitions&gt;"
 msgstr ""
+"@WebService(name = &quot;Hello&quot;, \n"
+"targetNamespace = &quot;http://org.jboss.ws/samples/wssecuritypolicy&quot;,\n"
+"wsdlLocation=&quot;WEB-INF/wsdl/HelloService.wsdl&quot;)\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 = &quot;user&quot;) UserType "
+"in0)\n"
+"{\n"
+"log.info(in0);\n"
+"return in0;\n"
+"}\n"
+"}\n"
+"&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\n"
+"&lt;definitions name=&apos;HelloService&apos; targetNamespace=&apos;http://"
+"org.jboss.ws/samples/wssecuritypolicy&apos; xmlns=&apos;http://schemas."
+"xmlsoap.org/wsdl/&apos; xmlns:ns1=&apos;http://org.jboss.ws/samples/"
+"wssecurity&apos; xmlns:soap=&apos;http://schemas.xmlsoap.org/wsdl/soap/"
+"&apos; xmlns:tns=&apos;http://org.jboss.ws/samples/wssecuritypolicy&apos; "
+"xmlns:wsp=&apos;http://schemas.xmlsoap.org/ws/2004/09/policy&apos; xmlns:"
+"xsd=&apos;http://www.w3.org/2001/XMLSchema&apos;&gt;\n"
+"&lt;types&gt;\n"
+"&lt;xs:schema targetNamespace=&apos;http://org.jboss.ws/samples/"
+"wssecurity&apos; version=&apos;1.0&apos; \n"
+"              xmlns:xs=&apos;http://www.w3.org/2001/XMLSchema&apos;&gt;\n"
+"&lt;xs:complexType name=&apos;UserType&apos;&gt;\n"
+"&lt;xs:sequence&gt;\n"
+"&lt;xs:element minOccurs=&apos;0&apos; name=&apos;msg&apos; type=&apos;xs:"
+"string&apos;/&gt;\n"
+"&lt;/xs:sequence&gt;\n"
+"&lt;/xs:complexType&gt;\n"
+"&lt;/xs:schema&gt;\n"
+"&lt;/types&gt;\n"
+"&lt;wsp:Policy wsu:Id=&apos;X509EndpointPolicy&apos;\n"
+"        xmlns:wsu=&apos;http://docs.oasis-open.org/wss/2004/01/oasis-200401-"
+"wss-wssecurity-utility-1.0.xsd&apos;&gt;\n"
+"&lt;wsp:All&gt;\n"
+"&lt;sp:jboss-ws-security xmlns:sp=&apos;http://www.jboss.com/ws-security/"
+"schema/jboss-ws-security_1_0.xsd&apos;&gt;\n"
+"&lt;sp:key-store-file&gt;WEB-INF/wsse.keystore&lt;/sp:key-store-file&gt;\n"
+"&lt;sp:key-store-password&gt;jbossws&lt;/sp:key-store-password&gt;\n"
+"&lt;sp:trust-store-file&gt;WEB-INF/wsse.truststore&lt;/sp:trust-store-"
+"file&gt;\n"
+"&lt;sp:trust-store-password&gt;jbossws&lt;/sp:trust-store-password&gt;\n"
+"&lt;sp:config&gt;\n"
+"&lt;sp:encrypt alias=&apos;wsse&apos; type=&apos;x509v3&apos;/&gt;\n"
+"&lt;sp:requires&gt;\n"
+"&lt;sp:encryption/&gt;\n"
+"&lt;/sp:requires&gt;\n"
+"&lt;/sp:config&gt;\n"
+"&lt;/sp:jboss-ws-security&gt;\n"
+"&lt;/wsp:All&gt;\n"
+"&lt;/wsp:Policy&gt;\n"
+"&lt;message name=&apos;Hello_echoUserType&apos;&gt;\n"
+"&lt;part name=&apos;user&apos; type=&apos;ns1:UserType&apos;/&gt;\n"
+"&lt;/message&gt;\n"
+"&lt;message name=&apos;Hello_echoUserTypeResponse&apos;&gt;\n"
+"&lt;part name=&apos;return&apos; type=&apos;ns1:UserType&apos;/&gt;\n"
+"&lt;/message&gt;\n"
+"&lt;portType name=&apos;Hello&apos;&gt;\n"
+"&lt;operation name=&apos;echoUserType&apos; parameterOrder=&apos;user&apos;"
+"&gt;\n"
+"&lt;input message=&apos;tns:Hello_echoUserType&apos;/&gt;\n"
+"&lt;output message=&apos;tns:Hello_echoUserTypeResponse&apos;/&gt;\n"
+"&lt;/operation&gt;\n"
+"&lt;/portType&gt;\n"
+"&lt;binding name=&apos;HelloBinding&apos; type=&apos;tns:Hello&apos;&gt;\n"
+"&lt;wsp:PolicyReference URI=&apos;#X509EndpointPolicy&apos;/&gt;\n"
+"&lt;soap:binding style=&apos;rpc&apos; transport=&apos;http://schemas."
+"xmlsoap.org/soap/http&apos;/&gt;\n"
+"&lt;operation name=&apos;echoUserType&apos;&gt;\n"
+"&lt;soap:operation soapAction=&apos;&apos;/&gt;\n"
+"&lt;input&gt;\n"
+"&lt;soap:body namespace=&apos;http://org.jboss.ws/samples/"
+"wssecuritypolicy&apos; use=&apos;literal&apos;/&gt;\n"
+"&lt;/input&gt;\n"
+"&lt;output&gt;\n"
+"&lt;soap:body namespace=&apos;http://org.jboss.ws/samples/"
+"wssecuritypolicy&apos; use=&apos;literal&apos;/&gt;\n"
+"&lt;/output&gt;\n"
+"&lt;/operation&gt;\n"
+"&lt;/binding&gt;\n"
+"&lt;service name=&apos;HelloService&apos;&gt;\n"
+"&lt;port binding=&apos;tns:HelloBinding&apos; name=&apos;HelloPort&apos;"
+"&gt;\n"
+"&lt;soap:address location=&apos;REPLACE_WITH_ACTUAL_URL&apos;/&gt;\n"
+"&lt;/port&gt;\n"
+"&lt;/service&gt;\n"
+"&lt;/definitions&gt;"
 
 #. 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 &#39;HelloBinding&#39; binding Element."
 msgstr ""
+"请注意 wsdl 文件里的 wsp:Policy 元素以及 &#39;HelloBinding&#39; 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 @@
 "&lt;/wsp:ExactlyOne&gt;               \n"
 "&lt;/wsp:Policy&gt;"
 msgstr ""
+"@WebService(name = &quot;Hello&quot;, targetNamespace = &quot;http://org."
+"jboss.ws/samples/wssecurityAnnotatedpolicy&quot;)\n"
+"@PolicyAttachment({@Policy( policyFileLocation=&quot;WEB-INF/Policy."
+"xml&quot;, 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 = &quot;user&quot;) UserType "
+"in0)\n"
+"{\n"
+"log.info(in0);\n"
+"return in0;\n"
+"}\n"
+"}\n"
+"&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\n"
+"...\n"
+"&lt;wsp:Policy wsu:Id=&quot;X509EndpointPolicy&quot;  xmlns:wsp=&quot;http://"
+"schemas.xmlsoap.org/ws/2004/09/policy&quot; \n"
+"xmlns:wsu=&quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-"
+"wssecurity-utility-1.0.xsd&quot;&gt;\n"
+"&lt;wsp:ExactlyOne&gt;\n"
+"&lt;wsp:All&gt;\n"
+"&lt;sp:jboss-ws-security xmlns:sp=&quot;http://www.jboss.com/ws-security/"
+"schema/jboss-ws-security_1_0.xsd&quot;&gt;\n"
+"&lt;sp:key-store-file&gt;WEB-INF/wsse.keystore&lt;/sp:key-store-file&gt;\n"
+"&lt;sp:key-store-password&gt;jbossws&lt;/sp:key-store-password&gt;\n"
+"&lt;sp:trust-store-file&gt;WEB-INF/wsse.truststore&lt;/sp:trust-store-"
+"file&gt;\n"
+"&lt;sp:trust-store-password&gt;jbossws&lt;/sp:trust-store-password&gt;\n"
+"&lt;sp:config&gt;\n"
+"&lt;sp:encrypt type=&quot;x509v3&quot; alias=&quot;wsse&quot;/&gt;\n"
+"&lt;sp:requires&gt;\n"
+"&lt;sp:encryption/&gt;\n"
+"&lt;/sp:requires&gt;\n"
+"&lt;/sp:config&gt;\n"
+"&lt;/sp:jboss-ws-security&gt;\n"
+"&lt;/wsp:All&gt;\n"
+"&lt;/wsp:ExactlyOne&gt;               \n"
+"&lt;/wsp:Policy&gt;"
 
 #. 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 &quot;&quot;;\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 &quot;&quot;;\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 &quot;&quot;;\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 &quot;&quot;;\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 &quot;&quot;;\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 &quot;BASIC&quot;, or &quot;CLIENT-"
+"CERT&quot;.\n"
+"*/\n"
+"String authMethod() default &quot;&quot;;\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&apos;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 &quot;&quot;;\n"
+"    \n"
+"/**\n"
+"* A secure endpoint does not by default publish it&apos;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 &quot;&quot;;\n"
 "}"
 msgstr ""
+"/**\n"
+"* Annotation for specifying the JBoss security domain for an EJB\n"
+"* \n"
+"* @author &lt;a href=&quot;mailto:bill at jboss.org&quot;&gt;Bill Burke&lt;/"
+"a&gt;\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: &quot;MyDomain&quot;\n"
+"*    Bad:  &quot;java:/jaas/MyDomain&quot;\n"
+"*/\n"
+"String value();\n"
+"   \n"
+"/**\n"
+"* The name for the unauthenticated pricipal\n"
+"*/\n"
+"String unauthenticatedPrincipal() default &quot;&quot;;\n"
+"}"
 




More information about the jboss-cvs-commits mailing list