G
Guest
Hey,
How do you tell a web service to resolve to localwebserver vs. localhost?
in reference.map I see
....
<DiscoveryClientResult
referenceType="System.Web.Services.Discovery.ContractReference"
url="http://localhost/[InstallationIISVirtualDir]/[WebServiceName].asmx?wsdl"
filename="[WebServiceName].wsdl" />
<DiscoveryClientResult
referenceType="System.Web.Services.Discovery.DiscoveryDocumentReference"
url="http://localhost/[InstallationIISVirtualDir]/[WebServiceName].asmx?disco" filename="[WebServiceName].disco" />
....
It's an easy change to change localhost to localwebservice but I have three
questions..
can we use a web.config setting and post it into the reference
programmatically?
What if we add to reference.map two DiscoveryClientResult elements with
localwebserver?
What if we in code tell it before the web service method is invoked? e.g.
[WebServiceName] ws = new ....
ws.url = http://localwebserver...
Or do you have a suggestion?
How do you tell a web service to resolve to localwebserver vs. localhost?
in reference.map I see
....
<DiscoveryClientResult
referenceType="System.Web.Services.Discovery.ContractReference"
url="http://localhost/[InstallationIISVirtualDir]/[WebServiceName].asmx?wsdl"
filename="[WebServiceName].wsdl" />
<DiscoveryClientResult
referenceType="System.Web.Services.Discovery.DiscoveryDocumentReference"
url="http://localhost/[InstallationIISVirtualDir]/[WebServiceName].asmx?disco" filename="[WebServiceName].disco" />
....
It's an easy change to change localhost to localwebservice but I have three
questions..
can we use a web.config setting and post it into the reference
programmatically?
What if we add to reference.map two DiscoveryClientResult elements with
localwebserver?
What if we in code tell it before the web service method is invoked? e.g.
[WebServiceName] ws = new ....
ws.url = http://localwebserver...
Or do you have a suggestion?