I am currently developing a WCF service maintained by the Windows Service. One method has a URI that is configured to receive a callback from a payment provider. This is an interface contract ...
[OperationContract] [WebInvoke(UriTemplate = "3DSecureCallback?TrxId={id}", Method = "POST", BodyStyle = WebMessageBodyStyle.Bare)] void ThreeDSecureCallBack(string id, Stream body);
This problem that I am facing is that a third-party provider is sent to our service. I have to provide a callback url. Thus, we can reconcile payments, we provide a URL with a query string parameter containing a transaction identifier.
Callbacks were successful during the development of this service. (This was before the Steam option was added)
However, we are now at the stage when we need to analyze published data. It is that the parameter of the 2nd “stream” has been added to the method signature.
The problem I am getting is that I am getting the following exception ...
For request in operation ThreeDSecureCallBack to be a stream the operation must have a single parameter whose type is Stream.
By removing the id parameter and having only a stream, we can get the data to send. This will not work in practice, although I also need to request a string parameter.
Can anyone advise how to solve this problem? I am really at a loss.
Thanks in advance,
David
source share