コード例 #1
0
        /// <summary>
        /// Method used to send an http Hello message to specified endpoint. Use for managed discovery.
        /// </summary>
        /// <param name="endpointAddress">A string containing the endpoint address of a listening client.</param>
        public void DirectedHello(string endpointAddress, DpwsDiscoGreeting greeting, ProtocolVersion version)
        {
            WsMessage greetingsMessage = greeting.BuildHelloMessage(endpointAddress, null, null);

            Ws.Services.Transport.HTTP.WsHttpClient httpClient = new Ws.Services.Transport.HTTP.WsHttpClient(version);
            httpClient.SendRequestOneWay(greetingsMessage, new Uri(endpointAddress));
        }
コード例 #2
0
 /// <summary>
 /// Method used to send an http Hello message to specified endpoint. Use for managed discovery.
 /// </summary>
 /// <param name="endpointAddress">A string containing the endpoint address of a listening client.</param>
 public void DirectedHello(string endpointAddress)
 {
     byte[] greetingsMessage = DpwsDiscoGreeting.BuildHelloMessage(endpointAddress, null, null);
     Ws.Services.Transport.HTTP.WsHttpClient httpClient = new Ws.Services.Transport.HTTP.WsHttpClient();
     httpClient.SendRequest(greetingsMessage, endpointAddress, true, false);
     return;
 }
コード例 #3
0
 /// <summary>
 /// Method used to send an http Hello message to specified endpoint. Use for managed discovery.
 /// </summary>
 /// <param name="endpointAddress">A string containing the endpoint address of a listening client.</param>
 public void DirectedHello(string endpointAddress, DpwsDiscoGreeting greeting, ProtocolVersion version)
 {
     WsMessage greetingsMessage = greeting.BuildHelloMessage(endpointAddress, null, null);
     Ws.Services.Transport.HTTP.WsHttpClient httpClient = new Ws.Services.Transport.HTTP.WsHttpClient(version);
     httpClient.SendRequestOneWay(greetingsMessage, new Uri(endpointAddress));
 }