473,387 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Stupid Question

I have a business logic web service that references an object library. No
problem there. This object library needs to reference a data access web
service. If I add a web reference to the DAL web service and set the URL
behavior to dynamic, all the settings are stored in the designer vb code. I
can't seem to find a way to set everything up so that the address of the
referenced web service can be edited in some config file.

Long story short, I have a class library that needs to read a config file
which contains the url to a web service.

Any ideas?
Aug 9 '07 #1
2 1504
It is in your app.conf, and what is wrong with change the url with the
source code.

--
cheers,
RL
"Dave T" <Da***@discussions.microsoft.comwrote in message
news:D2**********************************@microsof t.com...
>I have a business logic web service that references an object library. No
problem there. This object library needs to reference a data access web
service. If I add a web reference to the DAL web service and set the URL
behavior to dynamic, all the settings are stored in the designer vb code.
I
can't seem to find a way to set everything up so that the address of the
referenced web service can be edited in some config file.

Long story short, I have a class library that needs to read a config file
which contains the url to a web service.

Any ideas?

Aug 10 '07 #2
Thanks Egghead.

At design time I need to read it from something in a class library project
(the typed data set insists on it), but the flaming designer doesn't put it
in an app.config) while at run-time it needs to be read from a web.config. I
don't know enough about these new ways of getting settings.

Anyway, I think it's the "forest for the trees effect" ... I think I'm going
to let the designer put it wherever it wants and I'll put the settings in an
XML file that I can put any place I want and read it any way I want.

"Egghead" wrote:
It is in your app.conf, and what is wrong with change the url with the
source code.

--
cheers,
RL
"Dave T" <Da***@discussions.microsoft.comwrote in message
news:D2**********************************@microsof t.com...
I have a business logic web service that references an object library. No
problem there. This object library needs to reference a data access web
service. If I add a web reference to the DAL web service and set the URL
behavior to dynamic, all the settings are stored in the designer vb code.
I
can't seem to find a way to set everything up so that the address of the
referenced web service can be edited in some config file.

Long story short, I have a class library that needs to read a config file
which contains the url to a web service.

Any ideas?


Aug 10 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

119
by: rhat | last post by:
I heard that beta 2 now makes ASP.NET xhtml compliant. Can anyone shed some light on what this will change and it will break stuff as converting HTML to XHTML pages DO break things. see,...
5
by: raz | last post by:
Greetings all. I apologize for what is almost certainly a stupid question, but I can't figure this out, and have no more time for head bashing... The short version: what is the appropriate...
4
by: IS | last post by:
At the recommendation of several people in this newsgroup I have downloaded two or three Compilers. One is the Beta version of Microsoft's Visual C++ 2005. I have entered a complete beginner code...
2
by: Ron Weldy | last post by:
I read that you don't need .cs files to deploy but I suppose if you are trying to reconstruct someone's work, you will need these files. Is that correct?
3
by: rroman | last post by:
I have a very simple form, takes information from the user, updates a SQL database, now I just want to redirect to a "Thank You For Your Time" web page within the same bowser. ASP. NET VB
6
by: Adam Smith | last post by:
I have posted this and similar questions repeatedly and can't even raise a single response. I am being led to believe that this then 'Must be a stupid question' although people say that there is no...
5
by: Alberto Salvati | last post by:
Hi, List. My company has a VERY BIG product base on db2 udb v7.x. We want to di an upgrade to v9, but.... current db has a lot of procedure (cobol..!). Therefore, we've planned to rewrite this...
2
by: Lynx101 | last post by:
Hi, Is this a stupid question? Senario: Two tables linked together with an ID number. Question: When using a combo box, which refences another table by indexed autonumber, is there a way to...
9
by: AWW | last post by:
Running XP - Visual Studio 2005 - VB Want to have duplicate projects - one safe and stable - other for experimenting Can't fine easy way to make duplicate project. Stupid question? or stupid ME?...
9
by: Alec | last post by:
Sorry guys, stupid question.... Am no programming expert and have only just started using php for creating dynamic news pages. Then I see a dynamic website without the php extension. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.