Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2004

Tip: Looking for answers? Try searching our database.

What's the Web-Reference doing???

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tilfried Weissenberger - 26 Nov 2004 21:00 GMT
Hi,

I have a WebService which supplies an object. Now when I add a
"Web-Reference" in VS.2003 the proxy class doesn't return an instance
of that object, but it's own "implementation" of it, which is not what
I need!

I know that in theory I don't always have access to the original
object-types from the "client" app, but in my case I have bound the
"common" dll to both applications.

Is there a way to get the serialized version of the "real" object,
instead of having a proxy-class generated?

regards, Tilli
Drew Marsh - 26 Nov 2004 21:19 GMT
> I have a WebService which supplies an object. Now when I add a
> "Web-Reference" in VS.2003 the proxy class doesn't return an instance
[quoted text clipped - 7 lines]
> Is there a way to get the serialized version of the "real" object,
> instead of having a proxy-class generated?

Writing the proxy yourself is probably the only answer to this. You gotta realize that any .NET type information ceases to exist once the web service generates the WSDL and schema for your types, there's no way that Add Web Reference, more specifically wsdl.exe, has any clue about .NET types. So, instead, it generates it's own wrapper types based off of the WSDL/schema. If you want to get fancier, you need to write the proxy by hand.

HTH,
Drew
Tilfried Weissenberger - 30 Nov 2004 09:26 GMT
I understand, thank you!

regards, Tilli

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.