HighTechTalks DotNet Forums  

Passing classes

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Passing classes in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Roby Eisenbraun Martins
 
Posts: n/a

Default Passing classes - 11-29-2007 , 07:49 AM






Hi,

I have a solution working with a webservice project, userinterface project
and they both reference to a personal framework project.
When I create a method on the webservice project using a class from the
framework and I call that method from the userinterface it crashes with a
ambiguous reference error. In fact the webservice is creating another class
to be able to send it.
But I don't want that because I know the userinterface has got that class
already. I want to work with the same class.
How can I flag my classes from the framework project to not be "replicated"
by .NET when using a webservice?

Thank you,
Roby



Reply With Quote
  #2  
Old   
Scott M.
 
Posts: n/a

Default Re: Passing classes - 11-30-2007 , 12:56 AM






Two questions:

Can we see the webservice code?

Why are you returning a proprietary entity via the WebService model and not
using Remoting?



"Roby Eisenbraun Martins" <RobyEisenbraunMartins (AT) discussions (DOT) microsoft.com>
wrote in message news:88997BBA-617F-4030-A012-CFFC855A1E08 (AT) microsoft (DOT) com...
Quote:
Hi,

I have a solution working with a webservice project, userinterface project
and they both reference to a personal framework project.
When I create a method on the webservice project using a class from the
framework and I call that method from the userinterface it crashes with a
ambiguous reference error. In fact the webservice is creating another
class
to be able to send it.
But I don't want that because I know the userinterface has got that class
already. I want to work with the same class.
How can I flag my classes from the framework project to not be
"replicated"
by .NET when using a webservice?

Thank you,
Roby




Reply With Quote
  #3  
Old   
Mr. Murdock
 
Posts: n/a

Default Re: Passing classes - 11-30-2007 , 05:18 AM



I'm using webservices and I don't want .NET to create another class I'm
sending as parameter. Now I have to copy the content from one class to
another to be able to use it.
It should use the same class. Same namespace.
I'm not working with remoting.

Thank you,
Roby

"Scott M." wrote:

Quote:
Two questions:

Can we see the webservice code?

Why are you returning a proprietary entity via the WebService model and not
using Remoting?



"Roby Eisenbraun Martins" <RobyEisenbraunMartins (AT) discussions (DOT) microsoft.com
wrote

Hi,

I have a solution working with a webservice project, userinterface project
and they both reference to a personal framework project.
When I create a method on the webservice project using a class from the
framework and I call that method from the userinterface it crashes with a
ambiguous reference error. In fact the webservice is creating another
class
to be able to send it.
But I don't want that because I know the userinterface has got that class
already. I want to work with the same class.
How can I flag my classes from the framework project to not be
"replicated"
by .NET when using a webservice?

Thank you,
Roby




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.