E
erin.sebastian
Hello All,
I have a program that uses web services, i added the webservice and
initially had been using the static URL but I now am changing back and
forth to the development environment and the production environment so
i've changed the URL to DYNAMIC and have added the appropriate keys in
my app.config .... The problem is that it doesn't work, when i change
from local host to development the web reference still tries to access
the local host. I thought that the basis behind the Dynamic option was
that this tells it to look at your config file to find the appropriate
reference, am i wrong?
I have attached my config file for your information, thanks SO MUCH in
advance!!
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<!-- localhost -->
<!--add key="Marine-Connector.MarineEDI.ElectronicDataInterchange"
value="http://localhost/Marine-WebServices/WebServices/EDI/ElectronicDataInterchange.asmx"/>
<add key="Marine-Connector.MarineRating.RatePolicy"
value="http://localhost/Marine-WebServices/WebServices/RatingEngine/RatePolicy.asmx"/>
<add key="Marine-Connector.MarineServices.Repository"
value="http://localhost/Marine-WebServices/WebServices/Data/Repository.asmx"/>
<add key="Marine-Connector.MarineTam.TAM"
value="http://localhost/Marine-WebServices/WebServices/TAM/TAM.asmx"/>
<add key="Marine-Connector.MarineValidation.ValidatePolicy"
value="http://localhost/Marine-WebServices/WebServices/Validation/ValidatePolicy.asmx"/-->
<!-- Development-->
<add key="Marine-Connector.MarineServices.Repository"
value="http://172.16.64.204/Marine-WebServices/WebServices/Data/Repository.asmx"/>
<add key="Marine-Connector.MarineRating.RatePolicy"
value="http://172.16.64.204/Marine-WebServices/WebServices/RatingEngine/RatePolicy.asmx"/>
<add key="Marine-Connector.MarineTam.TAM"
value="http://172.16.64.204/Marine-WebServices/WebServices/TAM/TAM.asmx"/>
<add key="Marine-Connector.MarineValidation.ValidatePolicy"
value="http://172.16.64.204/Marine-WebServices/WebServices/Validation/ValidatePolicy.asmx"/>
<add key="Marine-Connector.MarineEDI.ElectronicDataInterchange"
value="http://172.16.64.204/Marine-WebServices/WebServices/EDI/ElectronicDataInterchange.asmx"/>
<!--Production-->
<!--add key="Marine-Connector.MarineEDI.ElectronicDataInterchange"
value="http://172.16.0.249/Marine/MarineWeb/WebServices/EDI/ElectronicDataInterchange.asmx"/>
<add key="Marine-Connector.MarineRating.RatePolicy"
value="http://172.16.0.249/Marine/MarineWeb/WebServices/RatingEngine/RatePolicy.asmx"/>
<add key="Marine-Connector.MarineServices.Repository"
value="http://172.16.0.249/Marine/MarineWeb/WebServices/Data/Repository.asmx"/>
<add key="Marine-Connector.MarineTam.TAM"
value="http://172.16.0.249/Marine/MarineWeb/WebServices/TAM/TAM.asmx"/>
<add key="Marine-Connector.MarineValidation.ValidatePolicy"
value="http://172.16.0.249/Marine/MarineWeb/WebServices/Validation/ValidatePolicy.asmx"/-->
</appSettings>
</configuration>
I have a program that uses web services, i added the webservice and
initially had been using the static URL but I now am changing back and
forth to the development environment and the production environment so
i've changed the URL to DYNAMIC and have added the appropriate keys in
my app.config .... The problem is that it doesn't work, when i change
from local host to development the web reference still tries to access
the local host. I thought that the basis behind the Dynamic option was
that this tells it to look at your config file to find the appropriate
reference, am i wrong?
I have attached my config file for your information, thanks SO MUCH in
advance!!
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<!-- localhost -->
<!--add key="Marine-Connector.MarineEDI.ElectronicDataInterchange"
value="http://localhost/Marine-WebServices/WebServices/EDI/ElectronicDataInterchange.asmx"/>
<add key="Marine-Connector.MarineRating.RatePolicy"
value="http://localhost/Marine-WebServices/WebServices/RatingEngine/RatePolicy.asmx"/>
<add key="Marine-Connector.MarineServices.Repository"
value="http://localhost/Marine-WebServices/WebServices/Data/Repository.asmx"/>
<add key="Marine-Connector.MarineTam.TAM"
value="http://localhost/Marine-WebServices/WebServices/TAM/TAM.asmx"/>
<add key="Marine-Connector.MarineValidation.ValidatePolicy"
value="http://localhost/Marine-WebServices/WebServices/Validation/ValidatePolicy.asmx"/-->
<!-- Development-->
<add key="Marine-Connector.MarineServices.Repository"
value="http://172.16.64.204/Marine-WebServices/WebServices/Data/Repository.asmx"/>
<add key="Marine-Connector.MarineRating.RatePolicy"
value="http://172.16.64.204/Marine-WebServices/WebServices/RatingEngine/RatePolicy.asmx"/>
<add key="Marine-Connector.MarineTam.TAM"
value="http://172.16.64.204/Marine-WebServices/WebServices/TAM/TAM.asmx"/>
<add key="Marine-Connector.MarineValidation.ValidatePolicy"
value="http://172.16.64.204/Marine-WebServices/WebServices/Validation/ValidatePolicy.asmx"/>
<add key="Marine-Connector.MarineEDI.ElectronicDataInterchange"
value="http://172.16.64.204/Marine-WebServices/WebServices/EDI/ElectronicDataInterchange.asmx"/>
<!--Production-->
<!--add key="Marine-Connector.MarineEDI.ElectronicDataInterchange"
value="http://172.16.0.249/Marine/MarineWeb/WebServices/EDI/ElectronicDataInterchange.asmx"/>
<add key="Marine-Connector.MarineRating.RatePolicy"
value="http://172.16.0.249/Marine/MarineWeb/WebServices/RatingEngine/RatePolicy.asmx"/>
<add key="Marine-Connector.MarineServices.Repository"
value="http://172.16.0.249/Marine/MarineWeb/WebServices/Data/Repository.asmx"/>
<add key="Marine-Connector.MarineTam.TAM"
value="http://172.16.0.249/Marine/MarineWeb/WebServices/TAM/TAM.asmx"/>
<add key="Marine-Connector.MarineValidation.ValidatePolicy"
value="http://172.16.0.249/Marine/MarineWeb/WebServices/Validation/ValidatePolicy.asmx"/-->
</appSettings>
</configuration>