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

Applying Web Services???

Hello Everyone,
This is an interesting issue that needs the community's
attention and active participation. Lets begin from the top;

Microsoft Visual Studio.NET provides excellent and extensive integration for
working with ASP.NET Web Services. It provides a mechanism of adding a Web
Reference using a IDE feature. What this feature basically does is use the
WSDL utility(WSDL.exe) (DISCLAIMER: as I understand it!) and generate the
proxy for the web service and certain other artifacts. What is interesting
for the discussion is these certain other "artifacts". Lets take an example
to begin with;

I have a web service called MyWebService that contains a method MyMethod.
This method accepts a parameter of the type XYZDS that incidentally is a
typed-dataset. When the WSDL utility is parsing the WSDL of MyWebService, it
will inadvertently serialize the type-definition of XYSDS into the generated
proxy code. This is exactly where the issue lies. I have all my XSD's neatly
configured in dynamic link libraries (oops! class libraries) and other
projects that add a reference to MyWebService have reference to these DLLs.
However, as the default behaviour of adding a web reference is to force
serialize type definitions of unknown types, this DLL reference becomes
redundant and not useful. This is not the only consequence. If you take a
look at the Reference.cs file that is generated by the Add Web Reference
utility, you would notice that the size of the file is huge (of course, I am
assuming that I am using a lot of different typed-datasets...and incidentally
I am). I have seen Reference.cs to expand to the tune of 75 Kilolines of code
whereas the actual code written by myself and my team in a particular project
does not exceed 5 Kilolines. We also have multiple such client projects that
have a reference to some web service or the other. I can notice an adverse
affect on application performance when I have just two client projects. We
have another 18-20 projects more to go. All that automatic generated code is
going to;

1. make application hog more memory
2. slow down application performance due to repeated redundant common code
compilation
3. make maintainance a nightmare (if the schema changes, you would have to
Remove and add the webreference again). Although not a major issue in strict
terms, an issue just the same. Forgetting to refresh web reference will
create run time type-inconsistencies
4. does not support writing common client code that interacts with multiple
web services

My question is(ah! finally), how do we get around all these problems?

I have arrived at three possible solutions to this problem. However, I am
not sure which one to choose OR is there a better way to solve the problem at
hand. I want expert feedback from the community regarding this issue. All
help is appreciated.

LET THE DEBATE BEGIN!
Nov 21 '05 #1
0 1057

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

Similar topics

1
by: Neil Zanella | last post by:
Hello, I would like to use CSS to apply a width of 100% to all <input> elements, but to only those that have an type attribute set to "text", without affecting check boxes, radio buttons, etc......
3
by: Matthew P. Seltzer | last post by:
All- This is a bit 'out there,' but, here goes. I have copied the WinSxS folder from a WinXP box to my Win2K box. I would like to be able to apply XP control styles to my Win2K VB.NET apps. Given...
1
by: gchavez | last post by:
I'm running MSSQL 2K on Win 2k and just upgraded SQL Server from SP3 to SP4 (that's when my problem started). I have a procedure that bulk inserts from a text file that is located on a Netware 4.11...
1
by: florian.boldt | last post by:
Hi Folks, one of our developers uses a statement with a where clause which usually does not match to any rows. In case of one or more rows found she wrote a an expression in the select clause...
5
by: Ken Cox [Microsoft MVP] | last post by:
MS has posted this here: http://www.asp.net/faq/ms03-32-issue.aspx Fix for: 'Server Application Unavailable' Error after Applying Security Update for IE...
1
by: Ben R. | last post by:
Hi, I'm writing a .NET winforms app that serves as an email client. Users can store message templates. This is done via an XML document for loading and saving the templates. When the template is...
6
by: Orgun | last post by:
Hi, I sent this message to the moderated c++ group too but it is waiting for moderator approval and I wanted to send here too. I am new to Design Patterns. I want to write a simple...
1
by: yoram.ayalon | last post by:
Hello, we have this situation. web farm, several server 2003 machines, and several win2K, SP 4 machines all machines access files on a Network appliance using CIFS I am testing a ASP.NET...
6
by: =?Utf-8?B?UGF1bCBQcmV3ZXR0?= | last post by:
Hi - I have 4 webservers in my webfarm. All Win2k3 web edition. Before yesterday, none of them were service packed. I have now applied SP2 to two of them, and I'm getting a very weird MSDTC...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
tracyyun
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...

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.