Click here to Skip to main content
15,885,979 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

1 solution

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:

XML
<behaviors>
   <servicebehaviors>
     <behavior>
       <servicemetadata httpgetenabled="true">
     </servicemetadata>
   </behavior>
 </servicebehaviors>
</behaviors>


The httpGetEnabled attribute must be set to true.

I suppose you are using WCF
 
Share this answer
 
v3
Comments
srmohanr 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
José Amílcar Casimiro 15-Oct-13 8:26am    
I don't understand your question. It is the same thing.
srmohanr 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
José Amílcar Casimiro 15-Oct-13 9:24am    
https://sample.website.com/PathToYourWebService.asmx?WSDL
virendersingh10289 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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900