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

Bugs in .NET 3.5 Web Service (Dynamic)

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

Feb 19 '08 #1
1 2817
"Jordan Z." <Jo*****@discussions.microsoft.comwrote in message
news:D5**********************************@microsof t.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><configSections <sectionGroup name="applicationSettings"
type="System.Configuration.ApplicationSettingsGrou p, System,
Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="MyWebServiceRefLibrary.Properties.Settings"
type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089"
requirePermission="false" />
</sectionGroup></configSections>
2. Add this setting.

<applicationSettings>
<MyWebServiceRefLibrary.Properties.Settings>
<setting name="<MyWebServiceNameSpace_MyWebService"
serializeAs="String">
<value>http://localhost:8080/axis/services/MyWebService</value>
</setting>
</MyWebServiceRefLibrary.Properties.Settings>
</applicationSettings></configuration>
Thanks for posting this. I see that I win my bet!
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer
Feb 22 '08 #2

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

Similar topics

5
by: krisk | last post by:
Could not find ansewr: in ProjectInstaller, RunInstallerAttribute: ..... this.serviceInstaller1.ServiceName = MyServiceName; in the code: public class MyService :...
4
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...
2
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...
15
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...
3
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...
3
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...
3
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...
7
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...
4
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...
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
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
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
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.