Forums - C# Corner

Forum guidelines


  • 0
  • 4
  • 0

Service xml serialization - xsd schema output

Dec 18 2012 7:54 AM

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?

addressField" type="xs:string" nillable="true"/>
emailIdField" type="xs:string" nillable="true"/>
idField" type="xs:string" nillable="true"/>
itemsField" type="tns:ArrayOfArrayOfOrdersCustomerItemsItem" nillable="true"/>
nameField" type="xs:string" nillable="true"/>

Regards Al

Answers (1)

Download Free eBooks


C# Corner Chandigarh DevCon16
Chandigarh DevCon16 is a one-day Developer Conference where programmers, technologists, authors, and members meet, demonstrate, plan, and hang out.