A
AL
Hi
I've got two web services both running on the same web server. Both web
services are accesses via https and the same root level domain.
I wrote the client application which post information to one of the web
services and depending on which method was invoked calls the second web
service for additional functionality.
I received the following error when I first wrote the client application:
The underlying connection was closed: Could not establish trust relationship
with remote server
To correct this I implemented the ICertificatePolicy interface and forced
the method to always return true. I then set the ServicePointManager's
CertificatePolicy property to an instance of the class which implements the
interface.
This resolved the problem from client perspective.
However, when the web service calls into the other web service, I get the
error as well. My resolution was to do the same from which in the primary web
service.
When I call the second web service (from the primary web service), I create
an instance of the same class and set the ServicePointManager's property.
This however does not solve the problem the same was that it does when the
client application encounters this error.
These web service are hosted within an ASP environment. I'm no expert here,
so it there some way the environment could be setup that some security
boundry is preventing the two web services from communicating correctly?
Many thanks
Al
I've got two web services both running on the same web server. Both web
services are accesses via https and the same root level domain.
I wrote the client application which post information to one of the web
services and depending on which method was invoked calls the second web
service for additional functionality.
I received the following error when I first wrote the client application:
The underlying connection was closed: Could not establish trust relationship
with remote server
To correct this I implemented the ICertificatePolicy interface and forced
the method to always return true. I then set the ServicePointManager's
CertificatePolicy property to an instance of the class which implements the
interface.
This resolved the problem from client perspective.
However, when the web service calls into the other web service, I get the
error as well. My resolution was to do the same from which in the primary web
service.
When I call the second web service (from the primary web service), I create
an instance of the same class and set the ServicePointManager's property.
This however does not solve the problem the same was that it does when the
client application encounters this error.
These web service are hosted within an ASP environment. I'm no expert here,
so it there some way the environment could be setup that some security
boundry is preventing the two web services from communicating correctly?
Many thanks
Al