如何通过CICS Web服务中的容器发送BLOB对象(图像)给调用客户端。

huangapple go评论57阅读模式
英文:

How to send a BLOB object (image) via containers in a CICS Web Service to the calling Client

问题

我需要在CICS Web服务的响应XML中发送一组图像(存储在DB2表中作为BLOB)。我正在使用WSDL、IGOR(包装器和协调器)和AOR程序实现Web服务。请问如何将图像传递到响应中,以及是否可以发送一个或多个图像?

我们之前使用MQ发送和检索图像,但通过CICS Web服务发送图像是一种新方法。

英文:

I need to send some set of images (stored in DB2 table as BLOB) in the response XML of a CICS Web Service. I'm implementing the web service using WSDL, IGOR (Wrapper and coordinator) and AOR program. Could you please tell how to pass the images to the response and whether we can send only one image or many images?

We have used MQ to send and retrieve the images but via CICS Web Service it is something new.

答案1

得分: 1

当使用DFHWS2LS将WSDL转换为语言结构时,每个二进制字段都会被表示为一个容器。只需使用BLOB数据填充二进制容器,并将其名称放入响应结构中的相应字段。

您将希望为提供程序管道启用MTOM/XOP支持,以最小化发送的数据量。请参阅CICS文档中的https://www.ibm.com/docs/en/cics-ts/6.1?topic=infrastructure-support-mtomxop-optimization-binary-data。

如果在WSDL中定义了多个BLOB,您可以在响应中发送多个BLOB。

英文:

When the WSDL was converted to a language structure using DFHWS2LS each binary field would have been represented by a container. Simply populate a binary container with the BLOB data and put its name in the relevant field in the response structure.

You will want to enable MTOM/XOP support for the provider PIPELINE to minimise the amount of data being sent. See https://www.ibm.com/docs/en/cics-ts/6.1?topic=infrastructure-support-mtomxop-optimization-binary-data in the CICS documentation.

You can send multiple BLOBs in the response if that is what is defined in the WSDL.

huangapple
  • 本文由 发表于 2023年3月7日 00:49:41
  • 转载请务必保留本文链接:https://go.coder-hub.com/75653585.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定