Help. :) I have 4 large web services, in which in part of each contains the
filling of the same class. I want to print all the information from this
class, but it can't implicitly convert the type of the web service class to
the other web service class. I'm sure this is confusing, here's an example:
Web services 1, 2, 3, and 4 all contain the class PrintData. Each populate
the class differently. The local client application can call each of the
four web services and return an instance of the PrintData class. The
problem is, in my local class I'd have to have a web reference to each one,
with four different constructors. Currently each web service has it's own
client app, but I wanted to share the same utilities class library that will
handle the printing for all, since it uses the exact same class, but from a
different namespace/web service.
I hope this made sense. This is a real pain in the booty and would really
appreciate anyone's help.
Thanks,
Josh 4 1763
Two approaches:
1) You could make an IPrintData interface. All of the webserivces would
return an IPrintData interface. You could put the IPrintData interface in a
namespace like XYZ.Common. Then all the webserivces and the client app can
reference that. Then your client app could have something like
IPrintData appropriatePrin tData = WebServiceX.Get PrintData();
and GetPrintData would be defined as
IPrintData GetPrintData(Pa rams);
I have no idea how webserives work...but that's how I do it in remoting.
2) You could create a fifth webserivce that knows about the other four. So
the client just has to call that one webserive and the webserive takes care
of returning the appropriate PrintData based on the parameters passed to it.
Hope it helps
"Joshua Moore" wrote: Help. :) I have 4 large web services, in which in part of each contains the filling of the same class. I want to print all the information from this class, but it can't implicitly convert the type of the web service class to the other web service class. I'm sure this is confusing, here's an example:
Web services 1, 2, 3, and 4 all contain the class PrintData. Each populate the class differently. The local client application can call each of the four web services and return an instance of the PrintData class. The problem is, in my local class I'd have to have a web reference to each one, with four different constructors. Currently each web service has it's own client app, but I wanted to share the same utilities class library that will handle the printing for all, since it uses the exact same class, but from a different namespace/web service.
I hope this made sense. This is a real pain in the booty and would really appreciate anyone's help.
Thanks, Josh
I appreciate your feedback. The same problem is that still there will be a
different namespace on the returned interface.
"GreyAlien0 07" <Gr**********@d iscussions.micr osoft.com> wrote in message
news:04******** *************** ***********@mic rosoft.com... Two approaches:
1) You could make an IPrintData interface. All of the webserivces would return an IPrintData interface. You could put the IPrintData interface in a namespace like XYZ.Common. Then all the webserivces and the client app can reference that. Then your client app could have something like IPrintData appropriatePrin tData = WebServiceX.Get PrintData(); and GetPrintData would be defined as IPrintData GetPrintData(Pa rams);
I have no idea how webserives work...but that's how I do it in remoting.
2) You could create a fifth webserivce that knows about the other four. So the client just has to call that one webserive and the webserive takes care of returning the appropriate PrintData based on the parameters passed to it.
Hope it helps
"Joshua Moore" wrote:
Help. :) I have 4 large web services, in which in part of each contains the filling of the same class. I want to print all the information from this class, but it can't implicitly convert the type of the web service class to the other web service class. I'm sure this is confusing, here's an example:
Web services 1, 2, 3, and 4 all contain the class PrintData. Each populate the class differently. The local client application can call each of the four web services and return an instance of the PrintData class. The problem is, in my local class I'd have to have a web reference to each one, with four different constructors. Currently each web service has it's own client app, but I wanted to share the same utilities class library that will handle the printing for all, since it uses the exact same class, but from a different namespace/web service.
I hope this made sense. This is a real pain in the booty and would really appreciate anyone's help.
Thanks, Josh
your speaking to the fact that your client app has to reference all of the
webservices right?
"Joshua Moore" wrote: I appreciate your feedback. The same problem is that still there will be a different namespace on the returned interface.
"GreyAlien0 07" <Gr**********@d iscussions.micr osoft.com> wrote in message news:04******** *************** ***********@mic rosoft.com... Two approaches:
1) You could make an IPrintData interface. All of the webserivces would return an IPrintData interface. You could put the IPrintData interface in a namespace like XYZ.Common. Then all the webserivces and the client app can reference that. Then your client app could have something like IPrintData appropriatePrin tData = WebServiceX.Get PrintData(); and GetPrintData would be defined as IPrintData GetPrintData(Pa rams);
I have no idea how webserives work...but that's how I do it in remoting.
2) You could create a fifth webserivce that knows about the other four. So the client just has to call that one webserive and the webserive takes care of returning the appropriate PrintData based on the parameters passed to it.
Hope it helps
"Joshua Moore" wrote:
Help. :) I have 4 large web services, in which in part of each contains the filling of the same class. I want to print all the information from this class, but it can't implicitly convert the type of the web service class to the other web service class. I'm sure this is confusing, here's an example:
Web services 1, 2, 3, and 4 all contain the class PrintData. Each populate the class differently. The local client application can call each of the four web services and return an instance of the PrintData class. The problem is, in my local class I'd have to have a web reference to each one, with four different constructors. Currently each web service has it's own client app, but I wanted to share the same utilities class library that will handle the printing for all, since it uses the exact same class, but from a different namespace/web service.
I hope this made sense. This is a real pain in the booty and would really appreciate anyone's help.
Thanks, Josh
Sorry...I'm not very good at explaining myself and I appreciate you sticking
with me. When WebService1 retuns the PrintData class instance the strong
typed name is:
WebService1.Pri ntData. Whether this is an interface or a class or whatever,
it won't let me convert this directly, and I was hoping not to have to test
each variable for nulls, set each value, etc. manually. My hope was if I
created a local class that was identical to the one that the web service
returns, I wouldn't have to explitcity set each value, checking for nulls,
etc. I cannot reference all the web services is this class library
(direction from manager) - it's the whole reason we're trying to put
everything in one class/method, so there's not a method for each webservice.
Thanks,
Josh
"GreyAlien0 07" <Gr**********@d iscussions.micr osoft.com> wrote in message
news:9C******** *************** ***********@mic rosoft.com... your speaking to the fact that your client app has to reference all of the webservices right?
"Joshua Moore" wrote:
I appreciate your feedback. The same problem is that still there will be a different namespace on the returned interface.
"GreyAlien0 07" <Gr**********@d iscussions.micr osoft.com> wrote in message news:04******** *************** ***********@mic rosoft.com... > Two approaches: > > 1) You could make an IPrintData interface. All of the webserivces > would > return an IPrintData interface. You could put the IPrintData interface > in > a > namespace like XYZ.Common. Then all the webserivces and the client app > can > reference that. Then your client app could have something like > IPrintData appropriatePrin tData = WebServiceX.Get PrintData(); > and GetPrintData would be defined as > IPrintData GetPrintData(Pa rams); > > I have no idea how webserives work...but that's how I do it in > remoting. > > 2) You could create a fifth webserivce that knows about the other > four. > So > the client just has to call that one webserive and the webserive takes > care > of returning the appropriate PrintData based on the parameters passed > to > it. > > Hope it helps > > > > > "Joshua Moore" wrote: > >> Help. :) I have 4 large web services, in which in part of each >> contains >> the >> filling of the same class. I want to print all the information from >> this >> class, but it can't implicitly convert the type of the web service >> class >> to >> the other web service class. I'm sure this is confusing, here's an >> example: >> >> Web services 1, 2, 3, and 4 all contain the class PrintData. Each >> populate >> the class differently. The local client application can call each of >> the >> four web services and return an instance of the PrintData class. The >> problem is, in my local class I'd have to have a web reference to each >> one, >> with four different constructors. Currently each web service has it's >> own >> client app, but I wanted to share the same utilities class library >> that >> will >> handle the printing for all, since it uses the exact same class, but >> from >> a >> different namespace/web service. >> >> I hope this made sense. This is a real pain in the booty and would >> really >> appreciate anyone's help. >> >> Thanks, >> Josh >> >> >> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Vlad |
last post by:
Is there any way to install multiple instances of the same windows service
designed with VS.NET 2003? I tried copying the binaries into a separate
folder and then copying registry entries for the original service under a
new name but the SCM complains that the executable does not have this
service implemented.
Please note that I need to have distinct instances of executables installed
not merely multiple windows services defined within...
|
by: Fernando Nasser |
last post by:
Multiple database services and multiple versions on Red Hat Linux systems
The way it works is that we require a specific service script for each
database service (that is listening on each port). Each of these
services has a init script in /etc/init.d and a corresponding
configuration file in /etc/sysconfig. We use the 'chkconfig' utility to
decide if each of those services will be activated on boot or not (it
manipulates links under...
|
by: Mike |
last post by:
Looking to find any information on how to properly configure multiple
instances of DB2. This is on Win2k db2 ver 7.2. I am basically looking
for information on how the multiple instance settings should
configured to work, how memory is shared or not, etc. I can not seem
to find any good links to this information.
Thanks,
Mike
|
by: Matt D |
last post by:
I've got two web services that use the same data types and that
clients will have to consume. I read the msdn article on sharing types
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service07162002.asp)
but I don't want clients to have to add two web references and then
manually have to edit the proxy classes. After doing some searching I
found that putting references to multiple web services in a .disco...
|
by: Peter Theill |
last post by:
I have these two web services:
namespace WebService1 {
public class Service1 : System.Web.Services.WebService {
public Service1() {
}
public string HelloWorld() {
| |
by: Matt |
last post by:
I have approximately 5 instances on my test server that are identical
to my prod server. On the prod server, when I look at the services
file, there is a single entry per instance and everything seems to be
working fine. However, on the test server, after creating each
instance, there are 4 entries per instance. Is there a need for all 4
of these entries? When I add a new service for each instance like on
the prod server and then...
|
by: v4u2chat |
last post by:
Do I need to extend any of classes from AXIS to return multiple values? I'm exposing the following method as web service through AXIS to return multiple values.
public ContactAddress testService()
{
ContactAddress cAddr = new ContactAddress();
cAddr.setAddresses1("AAAAAAAAAAAAA");
cAddr.setAddresses2("BBBBBBBBBBBBB");
cAddr.setAddresses3("CCCCCCCCCCCCC");
|
by: assgar |
last post by:
Hi
I was using a schroll bar to display multiple rows of dynamically created from database records.
The scrolling was not displaying the data properly so I have decided to use pagination.
The problem I am having is,
if I select one item on page #1 and another on page #5
only the last item selected on page #5 is stored in the array.
How can I store selections from multiple pages into one array?
|
by: Adam Clauss |
last post by:
We have a service written in C#. The generated code "hardcodes" the service
name into the exe.
We have a situation where we would like to allow multiple Windows Services
to be defined. These would differ by the command-line parameters passed to
the .exe to give it a different configuration.
Is there a way to do this?
--
|
by: mcosgriff |
last post by:
Using Visual Studio 2005, language is C#
What I did so far was add a web reference, with this I can listen to a web service and receive an XML file with updated data and store relevant data off to a database.
What I am trying to do use the same web reference I added but change the url connection string and listen to multiple web services.
My experience with web services is very limited, so please bear with me. I have looked at some...
|
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: 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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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,...
|
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...
|
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: 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.
| |