In .Net, can I marshall a composite type across a web service?
You can pass and return composite types across Web services, but by default the web service returns to the client application a flattened, properties-only version of the composite type, except in the case of ADO.NET Datasets.Say you have created a custom class with properties that you marshall via a web service. When you make a web reference (in the client app.) to the Web service, Visual Studio generates a proxy class for your custom class, based on the description available in the WSDL of the Web Service.
When you explore the proxy class code, you will notice that your generated proxy class exposes our properties as fields, not properties. Hence you what you get back is a more flattened out version of your custom type.
Back
Sponsored links
Build IT Knowledge with Current & Trusted Content
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.
Check Out IT Certification Preparation Materials
Sign Up With SkillSoft & Get Access to Training Materials for Over 50 Professional Certifications.
Sign Up With SkillSoft & Get Access to Training Materials for Over 50 Professional Certifications.
Villanova University Six Sigma & IT Certificate Programs
100% Online programs in Six Sigma, IS Security, CISSP Prep, Business Analysis, Proj. Mgmt. and more!
100% Online programs in Six Sigma, IS Security, CISSP Prep, Business Analysis, Proj. Mgmt. and more!
Key Elements to an Effective Business Continuity Plan
Learn to develop a plan that clarifies what is critical and sets specific recovery requirements.
Learn to develop a plan that clarifies what is critical and sets specific recovery requirements.
Web based bug tracking - AdminiTrack.com
AdminiTrack offers an effective web-based bug tracking system designed for professional software development teams.
AdminiTrack offers an effective web-based bug tracking system designed for professional software development teams.
