Save me from braining myself on this wall! Please!
I have an asmx which I have recently upgraded to WSE (specifically to use
MTOM); however - I am now getting addressing issues, but I didn't change
anything else!
Basically, I have a client that is compiled against a development site, and
then at runtime the exe updates the .Url on the web-service proxy class to
the correct url for the environment (explicitely: not via app.config);
however, when the client executes, I get a (server) error that the <wsa:To>
header must match the actor URI.
My site does not define any explicit addressing or such.
Running a network trace, I see (where mgravellsvr2:81 is my "actual"
(runtime) site, and localserver:32999 is my development (compile-time)
site):
(in the headers)
Host: mgravellsvr2:81
(in the envelope)
<wsa:To>http://localserver:32999/{blah}</wsa:To>
Now to me this is clearly wrong (at the client end); however, attempts to
reproduce this for simple services have not been successful (the network
trace places the same value in the Host: and <wsa:To>).
The result is that ASP.Net throws a 500 with the message previously
mentioned.
Has anyone seen this before? Any ideas what is wrong?
Thanks in advance,
Marc