TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Allan
NA
4
0
Service xml serialization - xsd schema output
Dec 18 2012 7:54 AM
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
Answers (
1
)
Problem with Service Endpoint Definition
Service xml serialization [XmlAttributeAttribute()] ignored