>>How to create Service Reference From WSDL file
How to create Service Reference From WSDL file 2018-02-25T16:02:58+00:00

Home Forums WebServices WCF Asmx WebApi How to create Service Reference From WSDL file

  • Author
    Posts
  • Muhammad Zaheer
    Keymaster
    Post count: 10
    Visual Studio ToolsHow to make service reference from WSDL
    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
    single wsdl

You must be logged in to reply to this topic.