I have an MSMQ that receives XML format messages from various sources. I have a WCF endpoint (using MsmqIntegrationBinding) that I want to get. I have defined the following:
[ServiceContract(Namespace = "http://TestApp.MSMQService", ProtectionLevel = ProtectionLevel.None)]
[ServiceKnownType(typeof(String))]
public interface IMsmqReceiverService
{
[OperationContract(IsOneWay = true, Action = "*")]
void SubmitQueueMessage(MsmqMessage<String> msg);
}
Hoping to receive any XML message, however it only receives messages:
<?xml version="1.0">
<string>message</string>
For various reasons, we do not know and do not want to know that XML message schemas, having received it in String, will be enough. How to determine the endpoint that receives XML messages with any nodes that are queued, regardless of the scheme used in the message?
Also, if you specify a String buffer containing an XML message, how can I put it in MSMQ using System.Messaging.MessageQueue.Send without receiving it in another XML?