/// <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)); }
/// <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; }