.NET Framework Bookmark and Share   
 index > ASMX Web Services and XML Serialization > dynamic url for web service
 

dynamic url for web service

I have a class library (vb.net -VS2K5) that references a webservice and I am pulling the url for the service from mySettings (the .config file).
I change the URL in the config file, but it never seems to read the config file and always uses the value from the project's initial setting at compile time.
What am I doing wrong??
-Sandy

funkysandman
Click the web reference in Solution Explorer and in the Properties window, set the "URL Behavior" property to be "Dynamic".


John Saunders
WCF is Web Services. They are not two separate things.
Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
Use File->New Project to create Web Service Projects
John Saunders

thanks, it is set that way, but I think it's not a web service problem so I'll ask in another forum.

funkysandman

You can use google to search for other answers

Custom Search

More Threads

• Can't compile WebService file. Its looking for additional information?!
• KB928365 (.Net 2.0 Security Hotfix) Breaks xs:simpleType When Creating a WebReference
• WebReferences Subfolder Issue
• ? retrieving database and writing on the disk ?
• Accessing WebService From Behind ISA
• Connection to a SQL Server Database with mixed authentication
• Return multiple rows using a web method
• Failed to install QuickStart Tutorial from Framework .NET 2.0 on Windows Vista.
• Help Default Mothod??
• Error: WSDLReader: XML Parser failed at linenumber0, lineposition 0, reason is: The download of the specified resource has failed.