Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Sending Objects / Proxy Class Question

Reply
Thread Tools

Sending Objects / Proxy Class Question

 
 
Mark Thomson
Guest
Posts: n/a
 
      07-25-2005
I have a web service that has a Venue class on it. I also have a client
application running on pocket pc that has the same Venue class on it. The
problem is when i perform use the

[WebMethod]
Venue getVenue( )

from the client application, it maps the return type to
Webservicenamespace.Venue instead of Venue.

Should I be using Proxy classes for this or is there a better way to do it?


 
Reply With Quote
 
 
 
 
Michael Nemtsev
Guest
Posts: n/a
 
      07-25-2005
Hello Mark,

MT> I have a web service that has a Venue class on it. I also have a
MT> client application running on pocket pc that has the same Venue
MT> class on it. The problem is when i perform use the
MT>
MT> [WebMethod]
MT> Venue getVenue( )
MT> from the client application, it maps the return type to
MT> Webservicenamespace.Venue instead of Venue.
MT>
MT> Should I be using Proxy classes for this or is there a better way to
MT> do it?


U can't use proxy classes, due to u need to get access to your external class.
The solution is to remove Venue's class description from the proxy (client
class) and add using reference to your client Venue class in that proxy class.
Afther that just recompile your client application.

Be aware, that proxy return to its original state after u refresh your web-reference.
U need to remove class description again


---
WBR,
Michael Nemtsev



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Should proxy objects lie about their class name? John J. Lee Python 7 11-27-2007 08:39 PM
class objects, method objects, function objects 7stud Python 11 03-20-2007 06:05 PM
Nested Class, Member Class, Inner Class, Local Class, Anonymous Class E11 Java 1 10-12-2005 03:34 PM
Help to set up tomcat 4.1.27 behind socks proxy to access database outside the proxy vidy5300 Java 0 06-07-2004 02:23 PM
Web reference/Proxy class problems with custom objects Joe ASP .Net Web Services 1 05-05-2004 09:51 PM



Advertisments