W
WhiskyRomeo
I have an solution with several projects which call a web service for the
data retrieval and updates.
The main program is called DMS.exe. When I configure the webservice to use
Dynamic URL and create entries in the app.config file of the following
format, the application can't find the webservice. Static works fine but I
have to set the url in code in every place a webservice is used.
<appSettings>
<add key="myApplication.myServer.Service1"
value="http://myServer/myXmlWebService/Service1.asmx"/>
</appSettings>
So given:
application name is DMS,
the web service project is called DMSDataWS,
the server is LASER,
the physcial path on the server is:\InetPub\wwwroot\DMSDataWS\wsCommon.asmx,
the virtual folder is named DMSDATAWS (under DefaultWebSite)
the service is name wsCommon.asmx
What should the entry look like? The following does not work.
<appSettings>
<add key="DMS.Laser.wsCommon.asmx"
value="http://LASER/DMSDATA/wsCommon.asmx"/>
</appSettings>
data retrieval and updates.
The main program is called DMS.exe. When I configure the webservice to use
Dynamic URL and create entries in the app.config file of the following
format, the application can't find the webservice. Static works fine but I
have to set the url in code in every place a webservice is used.
<appSettings>
<add key="myApplication.myServer.Service1"
value="http://myServer/myXmlWebService/Service1.asmx"/>
</appSettings>
So given:
application name is DMS,
the web service project is called DMSDataWS,
the server is LASER,
the physcial path on the server is:\InetPub\wwwroot\DMSDataWS\wsCommon.asmx,
the virtual folder is named DMSDATAWS (under DefaultWebSite)
the service is name wsCommon.asmx
What should the entry look like? The following does not work.
<appSettings>
<add key="DMS.Laser.wsCommon.asmx"
value="http://LASER/DMSDATA/wsCommon.asmx"/>
</appSettings>