Jeff Smith
02-20-2005, 09:59 AM
Hello,
My general question is, what's the easiest way to dynamically change my development environment from staging to production. I know the high-level answer is, "just repoint to another wsdl", but...
I used asp.NET's discovery process to originally access the staging wsdl. From this, as well as the SDK, I now have code that has embedded within it staging references (i.e. public CommonServiceSoap() {
this.Url = "http://findv3.staging.mappoint.net/Find-30/Common.asmx";
} )
Following the SDN, I wrote code that has the following initialization of the various services:
private MapPointService.RenderServiceSoap renderService;
private MapPointService.FindServiceSoap findService;
private MapPointService.RouteServiceSoap routeService;
private MapPointService.CommonServiceSoap commonService;
If I look at the URLs, while stepping through the code, these naturally reference the hard-coded staging URLs. Is there a single place (i.e. within MapPointService) that I can just say, re-discover from the production (service) wsdl? Otherwise, is it safe to change each of the Urls dynamically to the production versions. For example:
renderService.Url = "http://findv3.service.mappoint.net/Find-30/Common.asmx";
Is this even a valid URL?
Thanks,
Jeff
My general question is, what's the easiest way to dynamically change my development environment from staging to production. I know the high-level answer is, "just repoint to another wsdl", but...
I used asp.NET's discovery process to originally access the staging wsdl. From this, as well as the SDK, I now have code that has embedded within it staging references (i.e. public CommonServiceSoap() {
this.Url = "http://findv3.staging.mappoint.net/Find-30/Common.asmx";
} )
Following the SDN, I wrote code that has the following initialization of the various services:
private MapPointService.RenderServiceSoap renderService;
private MapPointService.FindServiceSoap findService;
private MapPointService.RouteServiceSoap routeService;
private MapPointService.CommonServiceSoap commonService;
If I look at the URLs, while stepping through the code, these naturally reference the hard-coded staging URLs. Is there a single place (i.e. within MapPointService) that I can just say, re-discover from the production (service) wsdl? Otherwise, is it safe to change each of the Urls dynamically to the production versions. For example:
renderService.Url = "http://findv3.service.mappoint.net/Find-30/Common.asmx";
Is this even a valid URL?
Thanks,
Jeff