I have created a simple testserver. Calling the Sum() method is working OK, however when I cal a method that returns a struct, the call fails:
var Channel = new RemObjects.SDK.HTTPClientChannel("http://localhost:5274/handler.ashx/binmessage");
var Message = new RemObjects.SDK.BinMessage();
Message.UseCompression = false;
var Service = new SampleService(Channel, Message);
Service.GetUser(
function (result) {
alert(result);
},
function (msg) {
alert('Error');
alert(msg.getErrorMessage())
});
alert('Call completed');
This code first shows ‘Call completed’, then ‘Error’ and then an empty message (msg.getErrorMessage() is empty). I tried both BinMessage and JsonMessage.
Server sample (C#. ASP.NET): https://lynxdiagnostics.blob.core.windows.net/backup/Server.zip
Client sample: https://lynxdiagnostics.blob.core.windows.net/backup/Client.zip
Fiddler shows (see Image) that the server correctly sends a response to the client.
Cross origin headers are handled inside Web.config.
What could be the problem? Thanks for any support you can give…
Kees Vermeulen