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 / February 2005

Tip: Looking for answers? Try searching our database.

XsdObjectGen classes in Web Service Client Proxy

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dave v - 09 Feb 2005 17:53 GMT
Does anyone know how I can get a web service client proxy to use classes
created by XsdObjectGen.exe instead of WSDL.exe (or "Add Web Reference")?

It would be really nice to generate a class from a shema using XsdObjectGen
and use this as a parameter and/or return value of the web service. However,
when you build that, the client must work with the WSDL.exe generated proxy
class and not the more user-friendly XsdObjectGen class. I'm looking for a
performant and maintainable solution. A couple of things I've thought of:

1. Manually create/modify the proxy classes. I'm not sure if this is as
simple as substituting my XsedObjectGen class for the WSDL class in the
SOAPHttpClientProtocol subclass, but even so, it would decrease
maintainability (No more "Update Web Reference")

2. Create a helper function to serialize from the WSDL generated class and
deserialize into the XsdObjectGen class. I'm concerned about performance here.

Has anyone has experience with these methods or know a better way to let the
client work with XsdObjectGen classes?

Thanks,
Dave
Steven Cheng[MSFT] - 10 Feb 2005 07:45 GMT
Hi Dave,

Welcome to Webservice newsgroup. As for the XsdObjectGen tool, it is a
serialize mapping tool which can help generate class with the proper
attributes so that many different serialize formatter( binary , soap ) can
correctly serialize the class generated by it. However, as for the
webservice client , the main class is a proxy class which derived from
SoapHttpClient, this class's main task is to build the SOAP MESSAGE for
webservice and use HttpWebRequest to send out the message. So I don't think
the XsdObjectGen tool is the appropriate one to help generator such a
class. However, as for some other paramter classes or return value classes,
it's ok to use the XsdObjectGen to generator their class source.

Thanks & Regards,

Steven Cheng
Microsoft Online Support

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


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.