在Biztalk WCF适配器中启用流 [英] Enable Streaming in Biztalk WCF Adapter

查看:87
本文介绍了在Biztalk WCF适配器中启用流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从biztalk中将一个大的Blob和一些元数据发送到WCF服务.

I want to send a large blob from biztalk with some metadata to a WCF service.

尽管我必须使用http才能访问服务,但我可以自由控制服务设置和biztalk设置.

I can control both the service settings and the biztalk settings freely, though I have to use http to reach the service.

blob可能在千兆字节范围内,因此带有BasicHttp或WSHttp的普通WCF BizTalk适配器是毫无疑问的,因为它将消息内容序列化为XML.

The blob may well be in the gigabyte range, so the plain WCF BizTalk adapter with BasicHttp or WSHttp is out of question since it serializes the message content into XML.

我当前的情况是将元数据作为XML放入biztalk多部分消息的第一部分,并将有效负载放入第二部分.

My current scenario would put the metadata as XML into the first part of the biztalk multipart message and the payload into a second part.

要调用该服务,我将准备一个WCF MessageContract,以将元数据放入消息头中,并将有效负载放入正文中.我还将客户端和服务器端都设置为流式"传输模式.

To call the service I would prepare a WCF MessageContract to put the metadata into the message header and the payload into the body. I would also set both client and server side to "Streamed" transport mode.

这种情况在普通" WCF客户端上可以正常使用,但是如何配置Biztalk WCF适配器以在不将整个有效负载放入内存的情况下执行相同的操作?

This scenario works fine with a "normal" WCF client but how can I configure the Biztalk WCF adapter to do the same without ever putting the whole payload into memory?

当然可以使用自编写的适配器来完成,但是我想知道是否可以使用WCF自定义适配器加上一个或两个行为来实现它?

It could certainly be done wih a self written adapter, but I wonder if there's a way to do it with the WCF custom adapter plus a behavior or two?

推荐答案

BizTalk中的WCF适配器支持流媒体开箱即用.但是,您必须使用WCF-Custom来启用它.请参阅

WCF adapters in BizTalk support streaming out-of-the box. You must use WCF-Custom to enable it, though. Please, see this blog post for more information.

这篇关于在Biztalk WCF适配器中启用流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆