I'm generally looking for some kind of feedback on wcf service where I'm a complete beginner. Basically the client needs to transfer xml files and images to the service as well as be able to pull down datasets/or xml files from the service. I have set up a wsDualHttpBinding duplex contract to allow this(callbacks). My main three questions are:
I really could use some feedback please, wcf can be very complex and finding the correct way of doing something isn't easy for a beginner. Havn't had much feedback from previous questions on this topic.
Edit: After setting up stream, getting error for endpoint not following http protocol
<binding name="duplexendpointserver"
maxReceivedMessageSize="2147483647"
transferMode="Streamed"
messageEncoding="Mtom">
<security mode="TransportCredentialOnly">
<message clientCredentialType="UserName" />
</security>
</binding> <!--<reliableSession ordered="true" inactivityTimeout="00:10:00"/>-->
<!--</binding>-->
</basicHttpBinding>
</bindings>
<services>
<service name="Votex.Service.WCFServices" behaviorConfiguration="svcbh">
<endpoint name="duplexendpoint" address="" binding="basicHttpBinding" bindingConfiguration="duplexendpointserver" contract="Votex.Service.IWCFServices" ></endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
Check out this MSDN article on Large Data and Streaming.
void Upload(Stream uploadStream)
Stream Download(string fileName)
)