We did a same code base test between 1.1 and 3.5.
In 1.1, when your .NET application reference a library with web reference
(dynamic), you can always easily overwrite the default URL by specifying a
different URL in your app config file or web config file.
Now, in 3.5, I find that this no longer works. No matter what URL you
specify in app config, it still point to default URL, which seems to be a
serious bug to us.
I am not sure if this is an intentional change, (not find any clue yet) or a
bug.
I cannot use new WCF for this, as the web service we are referencing is a
web service written in Java.
Any insight?
Thanks 1 2834
"Jordan Z." <Jo*****@discus sions.microsoft .comwrote in message
news:D5******** *************** ***********@mic rosoft.com...
Hi. John. Thanks a lot for pointing it out. You are correct.
In 2.0, 3.5, we cannot rely on the old configuration section to overwrite
the dynamic web service URL any more. What we need to do is to configure
it
in the new section of configuration file.
1. Adding section in section group containing web service reference's
property settings.
For example:
<configuration> <configSectio ns <sectionGroup name="applicati onSettings"
type="System.Co nfiguration.App licationSetting sGroup, System,
Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9" >
<section name="MyWebServ iceRefLibrary.P roperties.Setti ngs"
type="System.Co nfiguration.Cli entSettingsSect ion, System, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9"
requirePermissi on="false" />
</sectionGroup></configSections>
2. Add this setting.
<applicationSet tings>
<MyWebServiceRe fLibrary.Proper ties.Settings>
<setting name="<MyWebSer viceNameSpace_M yWebService"
serializeAs="St ring">
<value>http://localhost:8080/axis/services/MyWebService</value>
</setting>
</MyWebServiceRef Library.Propert ies.Settings>
</applicationSett ings></configuration>
Thanks for posting this. I see that I win my bet!
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: krisk |
last post by:
Could not find ansewr:
in ProjectInstaller, RunInstallerAttribute:
.....
this.serviceInstaller1.ServiceName = MyServiceName;
in the code:
public class MyService : System.ServiceProcess.ServiceBase
{
string MyServiceName = "configSendmailA";
|
by: DraguVaso |
last post by:
Hi,
I developped a Windows Service in VB.NET (2005).
I need to have it installed two times on 1 machine. When I want to install
it a second time, the setup doesn't allow me to install it again in an other
directory, but only to repair or remove the other version.
I get arround this by simply copying the files of the first installed in a
second directory.
|
by: Rami Saad |
last post by:
Hi all,
I am trying to install a service using dynamic naming. I wrote values in the
configuration file, and trying to assign one of those values to a string,
and using this string as the name of the installer
<?xml version="1.0" encoding="utf-8" ?>
|
by: Nak |
last post by:
Hi there,
Is it possible to load a web service dynamically? i.e. If the web
service were to exist on a system with a non static IP address, an
application could download a "locator" file that contained details of it's
whereabouts, I have been looking at the "Discovery.DynamicDiscoveryDocument"
class but I think think this is what I am looking for is it? Thanks in
advance.
Nick.
|
by: JL |
last post by:
I have a VB.NET desktop program that reads/writes data to a server
using a Java-based Web Service. This web service, in identical
formats, is located on several servers with each server being a
different customer and different data content.
To connect with the Java Web Service, I downloaded the WSDL file and
used wsdl.exe to create a .vb class file. In my program, I simply call
the functions of the class to communicate with the server.
...
| |
by: Asus |
last post by:
Hello,
I'm new to Web Services.
I'm trying to develop a Web Service that retrieves some data out of a
database and sends them to the client as a DataSet when a method is invoked.
My question is: Is it possible to run another method on the Web Service
automatically to refresh the data? That means the Web Service should interact
as a Windows Service after a certain amount of time it should retrieve the
data and stores them locally, and...
|
by: lk |
last post by:
I need some help regarding the mechanism to put in place to be able to
dynamically update a remote object when the assembly where it is defined is
modified, and this whitout having service interruption.
Basically what I'm missing is how do we re-expose a remote object when
assembly has changed, and this without any interruption to the callers.
I have an application that exposes a remoting object (Well known service -
Singleton or...
|
by: PawelSokolowski |
last post by:
Hi all,
Is there any place where can I report bugs in Microsoft products in a way
that gives somethings ?
I mean anyone there cares ?
I was coping with bugs in Visual Studio for years, but I have enough.
After installing Service Pack 1 for .NET 2003 I just cannot stand it.
Simplest things are buggy like never before.
Examples., (those that I have never encountered without Service Pack)
|
by: =?Utf-8?B?Z3Jhenph?= |
last post by:
Hello
If someone can help me with this it would be greatly appreciated. I’m no web
service expert but I don't think i'm trying to do anything too special. I
think i must be missing something simple because i have been banging my head
against a wall with this for a while now.
I have created a web service and a client Win forms application to consume
the web service. The problem is i don't know where the web service will be
deployed...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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: 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: 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: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |