0

Just to let you know this must be a basic question, but I am new to this field.

I am given xml file and asked to import it in C# project as wsdl file.
I know how to import wsdl file in C# project like: Right click on 'Refrences' and then click 'Add Service Refrence' from there we need to select wsdl file.

I am confuse how to convert xml file to wsdl and import it in project.

I really appreciate your help or tips to proceed.

salah9
  • 502
  • 1
  • 10
  • 21
  • I don't understand the question. A wsdl file *is* an xml file. With wsdl Element as document element. What *exactly* do you have trouble with? – LocEngineer Feb 09 '18 at 15:35
  • @LocEngineer XML code which was given to me doesn't have any xsd tags like ' – salah9 Feb 09 '18 at 15:42
  • 1
    Then ask that person who gave you the xml to give you a proper wsdl file. You can't turn crap into whipped cream. – LocEngineer Feb 09 '18 at 15:44

1 Answers1

3

In order to create WSDL from XML first we have to create XSD from XML, Then with created XSD we can create a WSDL.

Create XSD from XML: Create XSD from XML in Code

Create WSDL from XSD: How to create wsdl from xsd

NnN
  • 463
  • 2
  • 11