Connecting Tech Pros Worldwide Forums | Help | Site Map

Dll, windows dorm, configuration file, web service

Iwan Petrow
Guest
 
Posts: n/a
#1: Nov 17 '05
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?


Ollie Riches
Guest
 
Posts: n/a
#2: Nov 17 '05

re: Dll, windows dorm, configuration file, web service


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.


"Iwan Petrow" <xxxxyz@abv.bg> wrote in message
news:1118237383.321406.303340@z14g2000cwz.googlegr oups.com...[color=blue]
> 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?
>[/color]


Iwan Petrow
Guest
 
Posts: n/a
#3: Nov 17 '05

re: Dll, windows dorm, configuration file, web service


Thanks

But my project is a dll. And when I compile it there is not config file.

Closed Thread