I want to send a big blob from biztalk with some metadata to the WCF service.
I can freely control the service settings and biztalk settings, although I need to use http to access the service.
Blob may well be in the gigabyte range, so a simple WCF BizTalk adapter with BasicHttp or WSHttp is out of the question, since it serializes the contents of the message in XML.
My current scenario puts metadata in XML format in the first part of the biztalk multipart message and the payload in the second part.
To call the service, I prepared WCF MessageContract to put metadata in the message header and payload in the body. I would also set both the client and server sides to the "Streamed" transport mode.
This script works fine with the “regular” WCF client, but how can I configure the Biztalk WCF adapter to do the same without putting all the payload into memory?
Of course, this can be done using your own adapter, but I wonder if there is a way to do this using a custom WCF adapter plus a behavior or two?
source
share