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?