473,322 Members | 1,562 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.

Problem converting types of Webservices

64
Hello guys,

Im developing an architecture which uses c# Winforms, Webservices and Remoting. Im stuck in a issue about Types and namespaces. Ill try to explain the scenario to you to help me if you can...

its a MVC template and i have my View using Winforms technology. My Control is encapsulated in a Webservice as an Application server. My Model is represented by a Windows Service using Remoting as the communication protocol (Socket TCP)

To me to instantiate my Remoting service i need to instantiate an Interface that represent my object. As the following code:

Expand|Select|Wrap|Line Numbers
  1. IMyInterface MyInterface = (IMyInterface)Activator.GetObject(typeof(IMyInterface), "tcp://localhost:6060/MyRemoteObject");
Where
IMyInterface = Interface that contains the methods id like to use which is a DLL.
MyInterface = the object created to call my remote methods for example:
Expand|Select|Wrap|Line Numbers
  1. int Sum = MyInterface.ReturnSum(10,10);
MyRemoteObject = the alias of the object that will be instantiate on my Remoting server.

Well ... that´s a little piece of my scenario.

The issue im facing is:

I reference a webservice to get the type of return on the Interface to use in a method and i have this Webservice referenced on my Remoting server that implements this interface.
As the following:

Interface side
Expand|Select|Wrap|Line Numbers
  1. MyWebservice.MyClass ReturnMyClass();
Remoting server side which implements IMyInterface
Expand|Select|Wrap|Line Numbers
  1.     public MyWebservice.MyClass ReturnMyClass()
  2.     {
  3.          MyReferencedWebservice.MyWebservice WS1 = new MyReferencedWebservice.MyWebservice();
  4.          return WS1.ReturnMyClass();
  5.     }
  6.  
and then i have 2 different assemblies from the same place referenced in different ways.

Do you have any suggestion for this issue?
Mar 29 '11 #1
0 903

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: nanookfan | last post by:
Hi all, I'm having a bizarre problem converting XML files to HTML using an XSLT. The problem is only occuring in my Netscape 7.0 browser. What makes it more bizarre is that it is only...
1
by: H. Kaya | last post by:
Hallo, I have a problem converting a XML file to a other. I have no idea how I can do this. I try it for a long time but I can not find a solution. Has anyone a Idea? Below you can find my...
1
by: Kent Lewandowski | last post by:
Hi, I saw this post from 3 years ago regarding converting DOUBLE values to CHAR in ibm DB2. Now I'm having the same problem. No real solution was posted to that old thread. Has anyone got...
3
by: Simon Harvey | last post by:
Hi all, I hope someone can help me with the following: I have a number of usercontrols that I've made which provides certain audit functions for any data inserted into it. Each audit control...
4
by: Brett | last post by:
Hi, I'm having trouble converting an old project to visual studio C++ .net v7.1.3088 I've updated one of the header files to use #include <iostream>, and used the std namspace. After...
3
by: Prozon | last post by:
Hi! I have problem naming my webservices. One of the problem is that I got naming conventions between my webservices and dataset that the services uses. Can someone please give me a good...
1
by: Blasting Cap | last post by:
I had a copy of a project that was working in Visual Studio 2003 and Framework 1.1. After a computer crash, I was given VS 2005 and am having more than a little difficulty getting things to open...
2
by: TheLongshot | last post by:
Ok, let's try this again. I have an ASP.NET 1.1 application that I'm working to convert to 2.0, but I've run into a snag. The problem is with this line: return...
2
by: Les Caudle | last post by:
I've inherited a .NET 1.0 app that I'm converting to 2.0. It contains a number of .xsd files (.xsd, .xsx, .cs) which get converted to (.xsd, .xsx, .xss, .xsc, .cs, .Designer.cs). The problem...
4
by: Jeff | last post by:
Hey ..NET 2.0 In my code am I trying to convert an int value into a decimal: decimal d = 0; int k = 87664; d = Convert.ToDecimal(k/100);
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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.