I am having XML in wsdl format, now i want to change it’s encoding to the format XSD format. Do i need to make some changes in web config, or what i will have to do please suggest me.
below is the Example
<wsdl:definitions name="LoginCheck"
targetNamespace="http://tempuri.org/">
<wsdl:types>
<xsd:schema targetNamespace="http://tempuri.org/Imports">
<xsd:import schemaLocation="http://192.168.0.6:8000/LoginCheck.svc?xsd=xsd0"
namespace="http://tempuri.org/"/>
<xsd:import schemaLocation="http://192.168.0.6:8000/LoginCheck.svc?xsd=xsd1"
namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
and I want to convert it to format like below
<definitions targetNamespace="urn:saveCharacterAcc">
<types>
<xsd:schema targetNamespace="urn:saveCharacterAcc">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
<xsd:complexType name="Character">
<xsd:all>
<xsd:element name="characterNumber"
type="xsd:int"/>
<xsd:element name="byteArray"
type="xsd:string"/>
<xsd:element name="rotationAngle"
type="xsd:string"/>
<xsd:element name="charX" type="xsd:string"/>
Not a straightforward way, but you could try using the wsdl tool (or svcutil for WCF) to generate C# classes then the xsd tool to generate your XSD from the classes.