Be sure to visit the
Web service FAQ to find clarification.
I'm trying call a method in a wsdl file which is located in another server.
You don't call a method in a WSDL file. The WSDL (Web Services Description Langauge) merely
describes the Web Service. If the WSDL is complete you will find the URL of the web service in the port element.
I don't have access to this server
It�s going to be "difficult" to call the service if you don�t have "access" to the server.
nor I know which tecnology they used to create the wsdl file.
That shouldn�t matter.
What I need to do is to call this method and use its return value (a single string) to create a windows media object.
My first thought was on coding it using AJAX, but I wasn't successful. I skimmed through many tutorials, but not a single one helped me. By reading, a found that - maybe - there is a security issue with using javascript which prevents me to access external wsdl files. Is that correct?
I presume in AJAX you would HTTP-POST a
SOAP message structured to the specifications of the WSDL to the URL specified in the WSDL.
But again, if you don�t have access to the server, AJAX can�t help you.
Do I have to install/learn/implement this solution using Axis?
If you don�t have access to the server/web service you are going to have to create a mock web service to
test against. That mock web service has to expose the interface as specified by the WSDL. You can use Tomcat/Axis, ASP.NET or whatever to do that. Your chosen framework will usually have a tool that can generate server stubs from a WSDL � however you will still have to code the service to return the results you want.
For the time being, I don't want to feed any webservice information, just to consume it.
As long as you don�t have access to a service that matches the interface specified by the WSDL you will have create you own stripped down version.