How can i convert wsdl to XSD type format?
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.
NoviceToDotNet
Hi friend, I am new to asp dot net realm. I am here for knowledge sharing and learning technical from seniors. Favourite Book:-> THE AUTOBIOGROPHY OF A YOGI FAVOURITE QUOTHATION:-> There is nothing matter in this world except your spiritual progress every day. from the Autobiography of a Yogi. Attachment is blinding; it lends an imaginary halo of attractiveness to the object of desire." Swami Sri Yukteswar, from the Autobiography of a Yogi.
Updated on August 24, 2022Comments
-
NoviceToDotNet over 1 year
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"/>