Accessing WSDL file when a web service is down? - web-services

Trying to know if there is any way to get the wsdl file of a web service when it is down ?

For C# services, if you have access to the dll's you can use the following:
http://wsdlgenerator.codeplex.com/
Note: with this tool all types that you use must be within a single dll

Related

How to locate the WSDL file in Azure web site?

I've created a web application that runs a web service (WCF). The source code is long gone but I just checked that the app itself is still up and running. Given that I have the address to the service (something.azurewebsites.com) and the name of one of the methods exposed (parameterless Ping), how can I learn the location of the WSDL file?
As far I recall, I've exposed it the most common way, the publish file fetched from the suggestion on Azure portal. I'd like to just call the method Ping to verify something, so rebuilding a whole new service seems a bit overkill.
Suggestions on what the exact URL might be? Alternatively, suggestions on a tool to sniff that up?
Go to the Azure portal and find the FTP address for your "something.azurewebsite.net". Then use an FTP program to connect to the server and browse the files. This way you might be able to find the ".svc" file. For that matter, you might be able to download all of your code and use a tool like Reflector to view the .Net compiled code.

WebServices client in java?

I would like have a solution for creating a WebServices client and it needs to consume the Services which already existed.
I have code this from Netbeans ide but my requirement is the wsdl url must be a dynamic one and more specific it needs to fetch from .xml,please suggest me to do that dynamic..cheers
If you are building a Java EE application you can create a web service client in Netbeans. Otherwise you need to code it on your own or use a external tool or library.
You need to parse the XML and read the WSDL URL from it, you can find in the net for how to read the data from the XML
Once done,using the URL you got from the XML you can call the service endpoint (The code you have already)

How can I consume a .asmx web service using C++?

Hey I am trying to use this USGS web service:
http://gisdata.usgs.gov/XMLWebServices/TNM_Elevation_Service.php
and I am a little unsure of how to do it in C++. I used WebRequests to use a Google Maps service but I don't know how to specify my parameters to this service in a WebRequest. Any tips?
If you are hard set on using C++, the easiest way to consume the webservice is to find a 3rd party library that consumes WSDL's and generates the necessary code for you.
I came across wsdlpull via a web search.

web service reference in DLL

hope someone can help with something that is really budding me.
i have a smart client, a couple of web services and some DLL's.
the dll's are essentially forms and controls. the dll's reference the web services within themselves.
the problem i have is how to change the references to the web services IN THE DLL's dynamically as you would do if i was they resided in a web.config file.
i can set the web service reference behviour to dynamic and change the reference in the web config file and the new location is used. how fo i apply the same for teh DLL as tehy are binary and the windows app.config has no reference to the actual web services.
hope that is clear. i am really srumped and would appreciate any an all advice.
many thanks
The DLLs will use the app.config file of their host application. For example if your smart client is called MySmartClient, then you could use MySmartClient.exe.config the same way you would use web.config to define web service urls.

Twitching Consumption of Web Services from Web Site to Web Application

I am trying to consume multiple Web Services that redefine some of the same common classes in their wsdl. I currently have them referenced in a Web Site, but I want to convert to Web Application.
Since some of the same classes are redefined from multiple Web Service, the problem is that when adding them in a web Application there is no way to make the namespaces the same across multiple Web Services, like you can in a Web Site.
Is there any way to do what I am looking for?
Show all files in your project, then hand-edit the autogenerated Reference.cs files to change the namespaces (and remove duplicates)? Ugly, but it ought to work.
Alternatively, use wsdl.exe from the command line -- it can generate a single proxy for multiple services -- and then add the generated file to the project manually. The syntax is something like: wsdl http://svr/foo.asmx http://svr/bar.asmx /namespace:Fnord.Proxies