How to create Service Reference From WSDL file

//How to create Service Reference From WSDL file
How to create Service Reference From WSDL file2018-10-11T11:26:18+00:00

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

Viewing 1 post (of 1 total)
  • Author
    Posts
  • ScientistZ
    Keymaster
    Post count: 39

    How to Create Service Reference From WSDL File

    Solution:

    Please follow below steps:
    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
    For more information visit
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.