I have an HttpHandler that acts as a proxy between website visitor and a windows hosted WCF service. Right now the WCF service is setup to handle a json request, but I would like to convert the json request to net.pipe or net.tcp or any of the protocols that WCF can handle. I am hoping to have a communication that goes:
client <--json using HTTP(S)--> IIS/HttpHandler <--SOAP/XML using net.pipe--> WCF service
Is this possible?
Right now I am just using the HttpHandler to make another webrequest to the WCF service, but would like to get away from that. The problem is that with the proxy, there is no real way (that I can see), on how to deserialize a response if the method I am calling contains an out parameter.
For instance take this method:
int DoSomething(string x, out long y)
If I were to call that method using a standard WCF proxy object within the logic of the HttpHandler proxy, how could I then serialize that response to json (using WCFs json formatting) and feed it back to the client?