I am trying to use dynamic URL and the app.config to specify the actuall url
of a web service. It isn't working. When using static URL there is no
problem.
The name of my application is DMS.exe. The DMS.Exe.Config file has the
following entry:
<add key="DMS.Oscar. wsCommon" value="http://Oscar/DMSDataWS/wsCommon.asmx"/>
The name of the server at the customer site is Oscar.
The url of the web service on my development server is:
"http://Mayor/DMSDataWS/wsCommon.asmx" and this is value of the url when it
is deployed.
What I am doing wrong?
wr 2 1472
Hi,
It will be helpful if you can show the code which you have used for
dynamically changing the webservice URL. And also what is exact issue you are
getting when doing so. Is it giving any error? I have tried the same and it
is working fine. Basically i generated a proxy class for the webservice and
mentioned the URL in the constructor of the proxy class. If you can provide
more details, it will be easy to solve the issue that you are getting.
regards,
Srimathi.
"WhiskyRome o" wrote: I am trying to use dynamic URL and the app.config to specify the actuall url of a web service. It isn't working. When using static URL there is no problem.
The name of my application is DMS.exe. The DMS.Exe.Config file has the following entry:
<add key="DMS.Oscar. wsCommon" value="http://Oscar/DMSDataWS/wsCommon.asmx"/>
The name of the server at the customer site is Oscar.
The url of the web service on my development server is: "http://Mayor/DMSDataWS/wsCommon.asmx" and this is value of the url when it is deployed.
What I am doing wrong?
wr
Thanks for the response!
The only code used is when I instaniate an object of the web service:
Dim ws As New wsOrgEvent.wsOr gEvent
ws.Credentials = System.Net.Cred entialCache.Def aultCredentials
If I have set the behavior to static URL, I add one more line:
ws.Url = "http:/Laser/DMSDataWS/wsOrgEvent.asmx "
If I have set the behavior to dynamic URL, I do no have the above line.
Either way, I then simply use the object in code like
DsLabFont_DDL1. Clear()
DsLabFont_DDL1. Merge(ws.LabFon t_DDL(cmbLab.Te xt))
wrl
"Srimathi" wrote: Hi,
It will be helpful if you can show the code which you have used for dynamically changing the webservice URL. And also what is exact issue you are getting when doing so. Is it giving any error? I have tried the same and it is working fine. Basically i generated a proxy class for the webservice and mentioned the URL in the constructor of the proxy class. If you can provide more details, it will be easy to solve the issue that you are getting.
regards, Srimathi.
"WhiskyRome o" wrote:
I am trying to use dynamic URL and the app.config to specify the actuall url of a web service. It isn't working. When using static URL there is no problem.
The name of my application is DMS.exe. The DMS.Exe.Config file has the following entry:
<add key="DMS.Oscar. wsCommon" value="http://Oscar/DMSDataWS/wsCommon.asmx"/>
The name of the server at the customer site is Oscar.
The url of the web service on my development server is: "http://Mayor/DMSDataWS/wsCommon.asmx" and this is value of the url when it is deployed.
What I am doing wrong?
wr This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: James |
last post by:
http://www.gotdotnet.com/workspaces/workspace.aspx?id=ad7acff7-ab1e-4bcb-99c0-57ac5a3a9742
|
by: Guinness Mann |
last post by:
When you guys talk about "dynamic SQL," to what exactly are you
referring? Is dynamic SQL anything that isn't a stored procedure?
Specifically, I use ASP.NET to communicate with my SQL Server 2000,
using an SqlConnection object to open the database and an SqlCommand
object to transfer my SQL text to the database.
Is this the "dynamic SQL" that is such a bad thing? What is my
alternative? Wait until after my program is working and...
|
by: Michael C |
last post by:
Hi all,
I half-resolved my previous TreeView issue. Now I was wondering if anyone
knows of a way to keep a TreeNode from being highlighted when it is
left-clicked? It seems like there should be an event I could intercept, or
a property I could set, but I'll be darned if I can figure out which one...
Thanks,
Michael C., MCDBA
|
by: Wei Wang |
last post by:
Hi,
I want to do a select in dynamic command, something like:
TRIGGER FUNCTION
DECLARE
table_name_suffix text;
temp_result RECORD;
temp_result2 RECORD;
|
by: Peter Olcott |
last post by:
I need to know how to get the solution mentioned below to work. The
solution is from gbayles Jan 29 2001, 12:50 pm, link is provided below:
> http://groups.google.com/group/comp.lang.c++/msg/db577c43260a5310?hl
>
>Another way is to create a one dimensional array and handle the
>indexing yourself (index = row * row_size + col). This is readily
>implemented in template classes that can create dynamically allocated
>multi-dimensional...
| |
by: serge |
last post by:
How can I run a single SP by asking multiple sales question either
by using the logical operator AND for all the questions; or using
the logical operator OR for all the questions. So it's always
either AND or OR but never mixed together.
We can use Northwind database for my question, it is very similar
to the structure of the problem on the database I am working on.
IF(SELECT OBJECT_ID('REPORT')) IS NOT NULL
DROP TABLE REPORT_SELECTION
|
by: Pascal Costanza |
last post by:
Dynamic Languages Day @ Vrije Universiteit Brussel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Monday, February 13, 2006, VUB Campus Etterbeek
The VUB (Programming Technology Lab, System and Software Engineering
Lab), ULB (deComp) and the Belgian Association for Dynamic Languages
(BADL) are very pleased to invite you to a whole day of presentations
about the programming languages Self, Smalltalk and Common Lisp by
experts in...
|
by: Davidoff |
last post by:
Bonjour, je voudrais réaliser un héritage d'un type complexe avec
attributs
<xs:complexType name="A">
<xs:attribute name="day"/>
</xs:complexType>
puis deux types dérivés :
|
by: jflash |
last post by:
Hello all,
I feel dumb having to ask this question in the first place, but I just
can not figure it out. I am wanting to set my site up using dynamic
urls (I'm assuming that's what they're called, an example of what I
have in mind is index.php?page=). However, I can not figure
out how to do this. I will eventually want to use SEF urls, but for now
I'll be content just to have the dynamic urls. If anyone can tell me
how to do this, I'd...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |