Hola Carlos, I never done it before, but you CAN do what you want. You can read GML from a web service, but for reading from a SOAP web service it will need more code on the client. In the terms of .NET platform, you should create a ASP.net handler (.ashx) or a ASP.NET page (.aspx), and generate the GML file with Response.Write (don't forget the HTTP headers). I think that using a 'Web service' (.asmx) will be more difficult because of all the SOAP envelops.
Hope this helps. On Fri, Apr 11, 2008 at 9:30 AM, Carlos Pinto <[EMAIL PROTECTED]> wrote: > Hi Eric, > > We use Visual Studio 2005 and the server is in windows also. > > So we can programme webservices but they don't allow to put a Linux server > because they say that they can not support it and they don't allow to put > the mapserver in the windows server because they are afraid it affect the > performance of the web server. > > Of course I am pushing it, but I am afraid it takes some months :( > Maybe this does not make sense and I would agree with!!!!!! > > So I can make a webservice visible to javascript and this will be a > temporary solution. > > Thanks for your help, > > Carlos > > > > > On 4/10/08, Eric Lemoine <[EMAIL PROTECTED]> wrote: > > On Wed, Apr 9, 2008 at 6:51 PM, Carlos Pinto <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > Hi > > > > > > > > sorry if it is a stupid question. > > > But unfortunately I can't install mapserver because the IT department > don't > > > allow. > > > So the solution I have found is make the query to the database and write > a > > > GML file. After that I pass the URL of the file to OpenLayers. > > > But I thought, maybe instead of writing the GML file I can have a > > > webservice and tell OpenLayers to receive the layer from the webservice, > > > > You probably can. Just curious: your IT dep doesn't allow you to > > install MapServer so why would it allow you to install your own web > > service? > > > > > this way it would be faster. > > > I understand that in a normal situation openlayers would use mapserver > or > > > geoserver instead of calling a webservice. > > > > MapServer and GeoServer are Web Service providers. > > > > -- > > Eric > > > > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > > -- Regards, Christian López Espínola _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
