RouterSpec

使用此元素来指定路由器程序的属性和属性,以路由单个端点的多个操作请求。 此元素将用于命名路由器程序的源文件和程序名。 可以为多个操作或单个操作指定此元素。 如果没有为多个操作指定 RouterSpec 元素,那么 缺省值派生自 EISService 元素的名称元素,如 带有 RouterSpec 和 WSBindSpec 元素的 EISService 的 XML 模式元素中所示。 如果未对单个操作指定此参数,那么不会生成路由器程序。

包含于

EIS服务

具有 RouterSpec 和 WSBindSpec 元素的 EISService 的 XML 模式元素

图 1 是具有 RouterSpec 和 WSBindSpec 元素的 EISService 的 XML 模式元素的示例。

图 1。 具有 RouterSpec 和 WSBindSpec 元素的 EISService 的 XML 模式元素
<xsd:element name="EISService">
       <xsd:complexType>
           <xsd:sequence>
               <xsd:element maxOccurs="1" minOccurs="0" ref="ServicePropertyArray"/>
               <xsd:element maxOccurs="1" minOccurs="0" ref="ConnectionPropertyArray"/>
               <xsd:element maxOccurs="unbounded" minOccurs="0" ref="Operation"/>
               <xsd:element maxOccurs="1" minOccurs="0" ref="WSBindSpec"/>
               <xsd:element minOccurs="0" ref="RouterSpec"/>
           </xsd:sequence>
           <xsd:attribute name="generateConverters" type="xsd:boolean" use="optional"/>
           <xsd:attribute name="generateSeparateXSD" type="xsd:boolean" use="optional"/>
           <xsd:attribute name="generateWSDL" type="xsd:boolean" use="optional"/>
           <xsd:attribute name="name" type="xsd:string" use="optional"/>
           <xsd:attribute name="targetNamespace" type="xsd:string" use="optional"/>
           <xsd:attribute name="type" type="xsd:string" use="optional"/>
           <xsd:attribute name="targetFilesURI" type="xsd:string" use="optional"/>
       </xsd:complexType>
</xsd:element>

属性

字段 描述
属性: fileName
有效值: 请参阅描述
必需?:
缺省值: 请参阅描述
指定输出文件的名称。

缺省值为: 生成的 WSDL 文件中的服务名称截断为 8 个字符,并与 .CBL 文件扩展名并置。

属性: overwrite
有效值: true | false
必需?:
缺省值: true
指定是否覆盖输出文件 (如果存在)。
属性: programName
有效值: 请参阅描述
必需?:
缺省值: 请参阅描述
指定路由器的主程序项的程序名。 任何长度超过 8 个字符的程序名都将被截断为 8 个字符。

缺省值为: 生成的 WSDL 文件中的服务名称截断为 7 个字符,并以字母 "T" 作为后缀。

属性: type
有效值: WEB_SERVICES_CICS
必需?:
缺省值: WEB_SERVICES_CICS
指定路由器类型。 目前,仅支持 WEB_SERVICES_CICS。 此类型必须与每个操作的 DriverSpec 元素的 driverType 属性匹配。

示例


<RouterSpec fileName="ROUTER.CBL" programName="ROUTER"/>
<CodegenPropertyArray type="Cobol">
        <CodegenProperty name="com.ibm.etools.xmlent.ui.GEN_PROG_NAME" 
                             value="CWSA"/>
        <CodegenProperty name=
                  "com.ibm.etools.xmlent.ui.GEN_CONVERSION_TYPE" 
                             value="interpretive"/>
</CodegenPropertyArray>