开发者

SOAP request Multicast over UDP

开发者 https://www.devze.com 2023-03-05 14:50 出处:网络
I want to use C# UDPClient class to multicast soap request over network, I can multicast simple strings using UDPclient class but how I will do it with Soap messages ?

I want to use C# UDPClient class to multicast soap request over network, I can multicast simple strings using UDPclient class but how I will do it with Soap messages ?

 public void SendProbe()
    {
        UdpClient sock = new UdpClient();
        IPEndPoint iep = 开发者_如何学运维new IPEndPoint(IPAddress.Parse("239.255.255.250"), 3702);
        // I want create soap message here to Multicast using UdpClient
        //
        //
        byte[] data = Encoding.ASCII.GetBytes("This is a test message");
        sock.Send(data, data.Length, iep);
        sock.Close();            
    }


Soap servers usually listen on TCP ports.

Are you sure the soap servers you're targeting are listening for UDP traffic?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号