MQRFH2 SOAP 设置

IBM® MQ SOAP 发送方和侦听器创建或期望接收具有以下设置的 MQRFH2

用途

IBM MQ SOAP 发送方将属性添加到 IBM MQ JMS创建的 <usr> 文件夹。 这些属性包含目标环境中的 SOAP 容器所需的信息。 属性语法 描述将属性添加到 MQRFH2时这些属性的语法。 有关 MQRFH2 头的描述,请参阅 MQRFH2 -规则和格式化头 2

属性语法

读取语法图跳过可视语法图<usr><contentType>text/xml; charset=utf-8</contentType> <endpointURL>URI</endpointURL><targetService>=serviceName1</targetService><soapAction>=serviceName2</soapAction><transportVersion>1</transportVersion></usr>
备注信息:
  • 1 targetService 对于 .NET Framework 1 或 2 是必需的,并且不会在 Axis 1.4上使用。
  • 2 soapAction 对于 .NET Framework 1 或 2 是可选的,并且不会在 Axis 1.4上使用。

参数

contentType
contentType 始终包含字符串 text/xml; charset=utf-8
endpointURL
请参阅 Web Service 部署的 URI 语法和参数
targetService
1 在 Axis 上, serviceNameJava 服务的标准名称,例如: targetService=javaDemos.service.StockQuoteAxis。 如果未指定 targetService ,那么将使用缺省 Axis 机制装入服务。
2.NET上, serviceName 是位于部署目录中的 .NET 服务的名称,例如: targetService=myService.asmx。 在 .NET 环境中, targetService 参数使单个 IBM MQ SOAP 侦听器能够处理针对多个服务的请求。 必须从同一目录部署这些服务。
soapAction
transportVersion
transportVersion 始终设置为 1

示例

此示例显示了 MQRFH2 和以下 SOAP 消息。 文件夹的长度以十进制显示。
注: URI 中的 & 编码为 &amp;
52464820 00000002 000002B0 00000001 RFH/ 0002 1208 0001
000004B8 20202020 20202020 00000000 1208 ? ? ? ? ? ? ? ? 0000
000004B8              1208
32 <mcd>
<Msd>jms_bytes</Msd>
</mcd>?
208 <jms>
<Dst>queue://queue://SOAPJ.demos</Dst>
<Rto>queue://WMQSOAP.DEMO.QM/SYSTEM.SOAP.RESPONSE.QUEUE</Rto>
<Tms>1157388516465</Tms>
<Cid>ID:000000000000000000000000000000000000000000000000</Cid>
<Dlv>1</Dlv>
</jms>
400 <usr>
<contentType>text/xml; charset=utf-8</contentType>
<transportVersion>1</transportVersion>
<endpointURL>
jms:/queue?destination=SOAPJ.demos@WMQSOAP.DEMO.QM
&amp;connectionFactory=connectQueueManager(WMQSOAP.DEMO.QM)
clientConnection(localhost%25289414%2529)
clientChannel(TESTCHANNEL)
&amp;replyDestination=SYSTEM.SOAP.RESPONSE.QUEUE
&amp;initialContextFactory=com.ibm.mq.jms.Nojndi
</endpointURL>
</usr>
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="https://www.w3.org/2001/XMLSchema"
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:getQuote
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="soap.server.StockQuoteAxis_Wmq">
<in0 xsi:type="xsd:string">XXX</in0>
</ns1:getQuote>
</soapenv:Body>
</soapenv:Envelope>
1 Java 服务
2 .NET 服务