Connecting Tech Pros Worldwide Forums | Help | Site Map

Bugs in .NET 3.5 Web Service (Dynamic)

=?Utf-8?B?Sm9yZGFuIFou?=
Guest
 
Posts: n/a
#1: Feb 19 '08
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


John Saunders [MVP]
Guest
 
Posts: n/a
#2: Feb 22 '08

re: Bugs in .NET 3.5 Web Service (Dynamic)


"Jordan Z." <JordanZ@discussions.microsoft.comwrote in message
news:D5B8A829-4ADB-4EEF-8AA7-72882E7EA238@microsoft.com...
Quote:
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


Closed Thread