In Focus
MOBILE: HTML 5 vs. Native Apps
Istanbul Chapter May 2013 2nd Seminar Announced : Learn WinJS, Windows Store, MVC
ANNOUNCEMENT: April 2013 Month Winners
Email :
Password :
Remember me?
Forgot password
Technologies
Monthly Leaders
ASK A QUESTION
C# Programming
Multi-threading
Microsoft Surface
Community Services
Java
.NET General
Office Interoperability
ReFS
Current Affairs
JQuery
Active Directory
Printing
Silverlight 5
Fun and Jokes
JSP
ADO.NET & Database
Project Management
WCF
Job Opportunities
Multimedia, Graphics, Flash
AJAX & Atlas
Remoting
Windows 8
Leadership
PHP
Algorithms & AI
Reporting
Windows Azure
Mac for Windows
Social Networking
Arrays & Collections
Robotics and Hardware
Windows Store Apps
Microsoft Feedback
TypeScript
ASP.NET & Web Development
Security & Cryptography
Workflow Foundation
Open Source Projects
Web Hosting
C# Language
Setup & Deployment
WPF
Operating Systems
Website Management
C# References
Sharepoint
XAML Language
Paid Projects
Windows Azure
CLR & .NET Internals
Speech & Voice Recognition
Site and Forums Feedback
Prizes, Awards, MVP
Windows Phone 7
COM Interoperability
Tablet PC
Announcements
Students & Beginner Projects
Database
Custom Controls
Testing and QA
Author Guidelines
Test Category
Database General
Design and Architecture
Visual Basic .NET
Bugs and Problems
Training & Certification
Oracle
Embedded Development
Visual C++
Forums Feedback
Web Development
SQL
Enterprise Development
Visual Studio 11
Site Feedback & Suggestions
Advertising, Marketing, SEO
SQL Server
Games, DirectX, and XNA
Visual Studio 2010
Site Spams
Android
Products
GDI+ and DirectX
Web Services
Miscellaneous
Cloud Computing
Office 2013
General
Windows Forms
.NET Books
Expression Tools
Products
LINQ
Windows Services
Ask the Author
HTML 5
SharePoint 2013
Migrating to .NET
Cutting-Edge
Career Advice
HTML, JavaScript, CSS
Windows 8
Mobile Development
.NET 5.0
Coffee, Chai Lounge
iPhone, iPad
Forum guidelines
Home
»
WCF
»
Service xml serialization - xsd schema output
Author
Question
Allan
Service xml serialization - xsd schema output
Posted on: 18 Dec 2012
Hi,
I've created a WCF web service and generated the xml serialization class with xsd.exe. My problem is that when I request the xsd from the service (
http://localhost:59120/Service1.svc?xsd=xsd2
) the element names are appended with "Field" does anyone know how to override these default names with the original element names?
<xs:sequence>
<xs:element name="
addressField
" type="xs:string" nillable="true"/>
<xs:element name="
emailIdField
" type="xs:string" nillable="true"/>
<xs:element name="
idField
" type="xs:string" nillable="true"/>
<xs:element name="
itemsField
" type="tns:ArrayOfArrayOfOrdersCustomerItemsItem" nillable="true"/>
<xs:element name="
nameField
" type="xs:string" nillable="true"/>
</xs:sequence>
Regards Al
Reply
Quick Reply
Report a Spam
Our Recommended Solutions
Create a Strongly Typed DataSet Using The XML Schema Definition Tool (XSD.exe)
Validating Input Xml Data Files
Use of Serialization in C#
XML Schema Validator
Serialization in C# and .NET
Using XML and XSLT
Visual Studio .NET and XML Support
XML Serialization in .NET Framework 2.0 : Part I
Best Practices in .NET XML Serialization of Complex Classes
Serialization Order in Data Contract
[ + ]
Author
Reply
Allan
0
0
Re: Service xml serialization - xsd schema output
Posted on: 20 Dec 2012
Hi,
I've managed to fix this by regenerating my class (xsd.exe) using the f switch "/f[ields]" which generates fields instead of properties. By default, properties are generated.
http://msdn.microsoft.com/en-us/libr...v=vs.100).aspx
Source:
http://forums.asp.net/p/1867094/5245...15760042769749
Reply
Quick Reply
Quick Reply:
SEARCH ANSWERS
All
C# Programming
Cutting-Edge
Site and Forums Feedback
Miscellaneous
Web Development
Database
Products
Any Word
Exact Word
Our recommended forum posts
Connecting Visual Studio 2010 with Sql server 2012
xml datagridview xpath
convert a string in xml node to xml
Problem conection to server .mdb database in windows service
how to sort the date ?
what is the purpose of creating virtual directory?
how to run .aspx page in win xp sp2 iis
To enter pdf and docx file in the database
Attendance Reports
Event in WebService
HOT QUESTIONS
Import/Export Generic List Objects
C# read xml data information
how to sort the date in dd mm yyyy
javascript for submit form without using submit button
Create List accessible for other classes
Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)
mathematical euation
About Textbox
Congratulation Vinod Kumar
If company is giving wrong feedback about Emp then what should we have to do ?
SPONSORED BY
DynamicPDF ReportWriter Suite
PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.