WCF service for JSONP

Today i struggled with a WCF service that I called using JSONP. It kept on saying that the callback-function was not called.
Using fiddler, I saw the right response with a function-call. Or, so I though! The response was wrapped in quotes:

"jQuery19109137689705588761_1498474476487('');"

Now, the trick was to return a stream instead of a string. Problem solved

Sidst opdateret: 26. jun.  2017

Submenu