Hello,
I'm developing an WSE application which have two parts.
One part (server) is the service provider which have a well-known address
and port number to which the second part (clinet) is sending requests and
recive replies.
It is always the client which initate the request, and the server only reply
to the client. The server never sends messages to the client not for
response.
Both the client and the server have a SoapSender class and SoapReceiver
class which working with soap.tcp protocol. Also currently both the client
and the server use constant port numbers because I have to supply a port
number to the SoapReceivers.Add method or a default port will be assigned to
me by WSE.
I would like to know if there is a way to use a 0 port number in order for
Windows to supply to me a free availabe local port number for the client's
SoapReceiver instance.
Thank you very much,
Ido.
Yves Reynhout - 22 Mar 2005 23:32 GMT
> Hello,
> I'm developing an WSE application which have two parts.
[quoted text clipped - 18 lines]
> Thank you very much,
> Ido.
Judging from the code, when no port is specified the default port is
assumed which is not the same as a random port. Try to find a snippet
that basically gives you the next free port number...