How to create Service Reference From WSDL file
1. First you need to have any Visual Studio Installed
2. Go to Programs -> Visual Studio version ( i.e. 2017) -> Visual Studio Tools)
3. Run the below command
WSDL /verbose C:\someservice.wsdl /out:c:\someservice.cs
4. If you have xml dependencies then you can use below command.
WSDL /verbose C:\someservice.wsdl C:\somexml.xsd C:\somexml2.xsd /out:c:\someservice.cs
Use Resultant cs file as reference.
If you are getting the error make sure you have all the dependencies, you can resolve this by choosing ?singlewsdl option