I have a WCF operation which is like this,
public bool SubmitDocument(byte[] document)
So the idea is that the caller will serialise a document, and call the operation above. It then gets put into our database.
I am trying to understand the internal workings of WCF, so when someone calls the operation above it seems logical that all of the byte[] data needs to be sent to the server before the actual operation is called.
Is there a way to 'log' when that data starts being uploaded to the server, and also catch an error if that fails part way through? I am having a problem with documents that are about 4mb failing part way through and my WCF service doesn't even register that someone is trying to call that operation.
I have increased the upload size limit like this,
<wsHttpBinding>
<!-- The upload limit should be 5 Mb, rounding up to 6 Mb just to be sure -->
<binding name="CarWebserviceBinding" maxReceivedMessageSize="6291456">
<security mode="None">
</security>
<!-- The upload limit should be 5 Mb, rounding up to 6 Mb just to be sure -->
<readerQuotas maxArrayLength="6291456" />
</binding>
</wsHttpBinding>
The problem overall is that a third party calls the WCF operation above (SubmitDocument) and the document never makes it to our end if it is over 4Mb.