473,805 Members | 1,939 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

a quick design question

I have a class that represents a business object. Currently, this
class exists as a vb6 "class" which will be ported to .net. The plan
is to separate this out into a .net object residing in a web service,
then replace the vb6 class with a different vb6 class which is just a
proxy that calls the web service through a COM wrapper, then back to
the original vb6 class through interop (don't ask). For now,
everything will just pass through. My question is about the design of
the web service.

I had planned to have a new business object class, but the interface
for this class will change shortly after I get this working with the
legacy code. I was thinking of having two interfaces for this class
to implement. One for the legacy code to call, and one for any
new .net user interfaces to call. So now I have three files: two
interfaces and a class that implements them both.

So now I need to expose some sort of interface for the web service.
This is a separate class containing web methods, and this is what the
clients see when visual studio generates the proxy classes.

So how should I hook this together? Instead of two interfaces, should
I create two asmx pages, one for each interface, and have them each
create the business object? Is there an advantage to keeping the two
interfaces in addition to the web service classes and just pass things
through?

tia
brian

Aug 8 '07 #1
1 1111
"brianlanni ng" <br**********@g mail.comwrote in message
news:11******** **************@ z24g2000prh.goo glegroups.com.. .
>I have a class that represents a business object. Currently, this
class exists as a vb6 "class" which will be ported to .net.
Is the existing class a COM object? If so (and assuming that high
performance isn't a goal), you could keep it as a COM object and still call
it from the web service. Then, if the VB6 class is large, you could break
off pieces of it to implement in .NET, rather than implementing the whole
thing in .NET right away. The VB6 code could _still_ call the parts that had
been VB6, but which had become .NET.

Eventually, you'd be left with a small VB6 piece that orchestrates calls to
..NET COM objects, and it would be time to remove the VB6 code and just have
..NET call .NET.

In the meantime, you would have made one small change after another, testing
in between, to give you confidence in the port.
--
John Saunders [MVP]

Aug 10 '07 #2

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

Similar topics

9
1961
by: John | last post by:
What is the fastest way to implement this function if ix is an integer. Would i need to convert ix to float? What is the fastest way to code this function? Thanks, --j
1
283
by: Mike | last post by:
Hi, I am using an enum to map to certain columns instead of using the string name. When I use the enum as the indexer in a datarow it forces me to cast it into an int. Shouldn't this be automatic at design time? See code below: private enum DataIndexer { OrderID,
0
9596
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,...
0
10609
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, 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...
1
10366
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10105
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9185
agi2029
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...
1
7646
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6876
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();...
0
5677
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3845
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.