473,320 Members | 1,930 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,320 software developers and data experts.

Dynamic URL (part deux)

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
Nov 23 '05 #1
2 1459
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.

"WhiskyRomeo" 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

Nov 23 '05 #2
Thanks for the response!

The only code used is when I instaniate an object of the web service:
Dim ws As New wsOrgEvent.wsOrgEvent
ws.Credentials = System.Net.CredentialCache.DefaultCredentials

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.LabFont_DDL(cmbLab.Text))

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.

"WhiskyRomeo" 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

Nov 23 '05 #3

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

Similar topics

27
by: James | last post by:
http://www.gotdotnet.com/workspaces/workspace.aspx?id=ad7acff7-ab1e-4bcb-99c0-57ac5a3a9742
1
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...
7
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...
2
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;
60
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: >...
7
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...
0
by: Pascal Costanza | last post by:
Dynamic Languages Day @ Vrije Universiteit Brussel ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Monday, February 13, 2006, VUB Campus Etterbeek The VUB (Programming Technology Lab,...
0
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 :
10
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.