在 SDO 存储库中包括 SOAP 头模式
通过将 SOAP 头模式插入到 SDO 存储库中,使用此任务来提高调解性能。
关于此任务
访问 SOAP 头的调解应确保 SOAP 头模式在 SDO 存储库中可用。这可简化对头字段的访问(请参阅Web Service 代码示例),并可提供重要性能优势。通常 SOAP 头的模式(.xsd 文件)已可用于应用程序开发者。
此处为在 SOAP 消息中传递的头(用于路由)的示例:
<soapenv:Header>
<hns0:myClientToken xmlns:hns0="http://www.ibm.com/wbc">
<UseRoutingId>true</ UseRoutingId >
<RoutingID>5</ RoutingID >
</hns0: myClientToken >
</soapenv:Header>
以下是关联头模式的示例:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.ibm.com/wbc"
elementFormDefault="unqualified">
<xs:element name=" myClientToken">
<xs:complexType>
<xs:sequence>
<xs:element name="UseRoutingId" type="xs:string"/>
<xs:element name="RoutingID" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
要将模式插入 SDO 存储库,请完成以下步骤: