--- In [email protected], João <[EMAIL PROTECTED]> wrote: > > Hello, > > we have built a Flex application that connects to Web-Services created > by a third-party. The problem is that our client doesn't want the WSDL > publicly accessible. > Is there a way to have Flex connecting to web-services without the > need of an WSDL? For example, by embedding the WSDL on the swf, or > something like that? I have tried removing the WSDL argument and > hardcoding the endpointURI on the WebService tag, but this way it > simples doesn't work. >
The way you connect to webservices is the same for every language. You need to know which methods are provided by the service. That is what the WDSL does. It establishes the agreement rules between the service client and the service provider. In other words, it tells you the functions you can call and the data types used. I am not quite sure what you mean by embedding the WSDL in the swf, because the WSDL file stays on the server end, and swf is a client interface, not server. When you say publicly available, do you mean available on the internet? Or is the application working in an intranet? Have a look at http://www.systinet.com/doc/ssc-60/primer/html/how.web.services.work.html so that you can understand how webservices work, and then just dive into the manuals to know how to use them in Flex. But, basically, you need to provide an endpointURI, because without it the webservice component doesn't know where the webservice is. It is the same as if you are trying to send some data to a php or jsp script. Will you be able to send the data if you don't provide the url address of that script? Same thing with webservices. Hope that helps. All the best, Fidel.

