Enable Streaming in Biztalk WCF Adapter

人走茶凉 提交于 2020-01-01 03:40:49

问题


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

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

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.

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.

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.

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?

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?


回答1:


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.




回答2:


Not a full answer I'm afriad - never had the chance to look at this, but - in case you haven't looked at that already, have a look at the OracleDB adapter in the WCF adapter pack. it's documentation suggests that it supports streaming (I've read Streaming and the Oracle Database Adapter and WCF LOB Adapter SDK and BizTalk Adapter Pack) And as I believe this is based on the out of the box WCF adapter, this may point at the right direction.

Basically, if the WCF adpater code supports streaming you are likely to need to use the WCF-Custom adapter and supply the correct configuration yourslef (either by using the supplied UI or by importing configuration from a config file, which is sometimes easier for complex configuration)

Sorry for the rather "generic" response, I hope it helps somewhat




回答3:


do you got Biztalk 2006 ? since previous releases of BizTalk mapping of documents always occurred in-memory.



来源:https://stackoverflow.com/questions/487043/enable-streaming-in-biztalk-wcf-adapter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!