|
|
Re: WSE 2.0 SP1 SoapClient/Service and NAT
|
Posted: Oct 17, 2004 5:03 PM
|
|
I've been going through similar problems for the last week or so in VB, there's a lack of practical examples.
Once I got the "connection is being actively refused" or "Method not available" errors I was reasonably happy that the address was correct.
A couple of things I noticed which may help.
I initially got confused as to when I was using my SoapReceiver Class or the Instance of it.
In SoapReceivers.Add(Receiver, aSoapReceiver) the Receiver needs addresses which refer to a SoapReceiver Class and aSoapReceiver is an Instance.
At one point the SoapReceiver Receive procedure was being called but in a new instance.
SoapReceivers.Add can be overloaded so that aSoapReceiver can be either a Class or an instance. Once I had inadvertently used a Class "it seemed to be stuck with it", I got a "connection is being actively refused" response no matter what I did, even when I had it right.
Sounds silly, but eventually I provided SoapReceivers.Add(Receiver, GetType(SoapReceiver)) - when I ran the programme, changed SoapReceivers.Add back to its correct usage the communication magically worked. Its been reliable ever since.
Enabling message tracing helped a bit, at least I could see when something was happening.
My current problem is that I can't see how to get all the "via" entries where both the server and client are behind different NAT firewalls.
hope this helps, if you want more detail let me know,
Epicycler
|
|