internal RequestMetadata FromSoapMessage(Message message)
        {
            string typeName   = SoapContentTypeHeader.ReadHeader(message);
            Type   targetType = GetRequestType(typeName);

            return(RequestMetadata.FromSoapMessage(message, targetType));
        }
Ejemplo n.º 2
0
        private static Message CreateOneWayMessage(
            object request, MessageHeader actionHeader, MessageVersion messageVersion)
        {
            Message message           = Message.CreateMessage(messageVersion, SoapServiceMetadata.Action.ProcessOneWay, request);
            var     contentTypeHeader = new SoapContentTypeHeader(request.GetType());

            message.Headers.Add(contentTypeHeader);
            message.Headers.Add(actionHeader);
            return(message);
        }