Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET WSDL
heyy...iam new in wsdl...I created a web service ..and invoke that it works fine..but now I want to call the web service from WSDL.(or webservice to WSDL..)..I don't know how to make WSDL and call the web service...
 
could you help mee..any link or solution..???
Posted 20-Feb-13 10:28am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi,
 
You must have a webservice like this http://localhost/MyWebService.asmx
 
For retreive your webservice wsdl you must put this address at the browser address bar:
http://localhost/MyWebService.asmx?wsdl
 
If you want to use this wsdl, you must go to the visual studio and add web reference with the wsdl address. You can also, generate your service proxy by command-line, executing:
wsdl.exe http://localhost/MyWebService.asmx?wsdl
 

2014-02-28
----------
 
Check your configuration file for this setting:
 
 
<behaviors>
   <servicebehaviors>
     <behavior>
       <servicemetadata httpgetenabled="true">
     </servicemetadata>
   </behavior>
 </servicebehaviors>
</behaviors>
 
The httpGetEnabled attribute must be set to true.
 
I suppose you are using WCF
  Permalink  
v3
Comments
srmohanr at 15-Oct-13 6:47am
   
Hi, Thanks for your help. Now I am getting data from a website. How can I get WSDL file from the web site. Please help
   
I don't understand your question. It is the same thing.
srmohanr at 15-Oct-13 8:28am
   
Actually my URL will be like https://sample.website.com. So I added
https://sample.website.com/?WSDL, but it's not working
   
https://sample.website.com/PathToYourWebService.asmx?WSDL
virendersingh10289 at 28-Feb-14 1:33am
   
http://localhost/WebServiceTest/Service.asmx?wsdl
 
when i put on my browser then page is blank,,,why my wsdl file not show in my page????
 
Pleas help me.....i m stuck
   
Improved my answer. Check it out.
SoMad at 28-Feb-14 21:12pm
   
:thumbsup: Nice continued effort.
 
Soren Madsen

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 575
1 Kornfeld Eliyahu Peter 409
2 Maciej Los 369
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,353
1 DamithSL 4,854
2 Maciej Los 4,466
3 Kornfeld Eliyahu Peter 4,058
4 Sergey Alexandrovich Kryukov 3,897


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 28 Feb 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100