A client and a server communicate in duplex mode. The client has a universal service (Action="*") as contract callback.
I'd like the server to be able to send fault to my client.
How can I do ?
A client and a server communicate in duplex mode. The client has a universal service (Action="*") as contract callback.
I'd like the server to be able to send fault to my client.
How can I do ?
What about setting your Action to something like
Action = NotificationData.NotificationAction
NotificationData is a MessageContract class that has a property MessageId
[MessageContract]
public class NotificationData
{
public const string NotificationAction = "http://gfader.com/copied-from/tomasz.janczuk.org";
[MessageBodyMember]
public string Message { get; set; }
[MessageBodyMember]
public DateTime SendTime { get; set; }
[MessageBodyMember]
public MessageIds MessageId { get; set; }
}
Code on client:
if MessageId == 500 --> error from server