Dll, windows dorm, configuration file, web service

  • Thread starter Thread starter Iwan Petrow
  • Start date Start date
I

Iwan Petrow

Hi,

I want to "discover" web services dynamicly. My main application is
windows forms and the form which use the web service is in a dll. But
when I compile the dll application it doesn't create the
application.config file.

What could I do to crete this file and to determine the url of the web
service in this case?
 
Inside the VS.Net IDE with the solution\project open:

right click on the library project and select 'Add' then 'Add New Item' then
select 'Application Configuration File' (scroll down to the bottom)

This will have added an app.config file for the class library, you can now
change the 'URL Behavior' property of the web service to be 'dynamic' and it
will add an entry to the app.config - this will allow you to change the web
service url at runtime.

--
HTH

Ollie Riches
http://www.phoneanalyser.net

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a programmer
helping programmers.
 
Back
Top