Пример #1
0
        // MetadataExchange GetResponse service stub
        public WsMessage Get(WsMessage msg)
        {
            WsWsaHeader header = msg.Header;

            // DPWS 1.1 spec: R0031:  A SERVICE MUST NOT generate a wsa:InvalidAddressingHeader SOAP Fault
            // [WS-Addressing SOAP Binding] if the [address] of the [reply endpoint] of an HTTP Request
            // Message SOAP ENVELOPE is "http://www.w3.org/2005/08/addressing/anonymous".
            if (header.ReplyTo != null && header.ReplyTo.Address.AbsoluteUri != m_version.AnonymousRoleUri)
            {
                throw new WsFaultException(header, WsFaultType.WsaInvalidMessageInformationHeader, "R0031");
            }

            return(m_response.GetResponse(msg));
        }
Пример #2
0
 // MetadataExchange GetResponse service stub
 public byte[] Get(WsWsaHeader header, XmlReader reader)
 {
     DpwsWsxMetdataResponse mexResponse = new DpwsWsxMetdataResponse();
     return mexResponse.GetResponse(header, reader);
 }