(Why spam?) Hey Andrea,
I need to do these requests in an javascript application. I suppose I can't rely on request builder to do it, I'm I wrong? I understand that OGC dropped support, so the recommended way is to build the "xml" in my application and then POST it somehow? Do you believe it would have any performance gain? Thanks 2015-11-17 13:17 GMT-02:00 Andrea Aime <[email protected]>: > On Tue, Nov 17, 2015 at 4:07 PM, César Augusto Ribeiro < > [email protected]> wrote: > >> I'm calling the following URL through a javascript application to obtain >> the unique neighborhood's names of my neighborhood layer. >> >> http:// >> .../geoserver/wps?service=WPS&version=1.0.0&request=Execute&identifier=gs:Unique&DataInputs=attribute%3dnome;features%3d%40xlink%3ahref%3dhttp://.../geoserver/smurb/ows%3Fservice=WFS%26version=1.0.0%26request=GetFeature%26typeName=smurb:bairros_vigentes_3857%26propertyName%3dnome&RawDataOutput=result%3dformat%40mimetype%3dapplication%2Fjson >> >> The problem is that this call takes like 10 seconds to execute and the >> layer has like 90 geometries only. If I make the "same" call through >> GeoServer's WPS Request Builder, it executes almost instantaneously, but I >> suspect it doesn't do HTTP requests. >> > It indeed does a HTTP request, but it's a local one. > I would suggest against using GET requests though, indeed those requests > in WPS were problematic > enough that OGC dropped support for GET requests in WPS 2.0 > > The request builder can create the XML for a POST request for you, second > button at the bottom > > Cheers > Andrea > > > -- > == > GeoServer Professional Services from the experts! Visit > http://goo.gl/it488V for more information. > == > > Ing. Andrea Aime > @geowolf > Technical Lead > > GeoSolutions S.A.S. > Via Poggio alle Viti 1187 > 55054 Massarosa (LU) > Italy > phone: +39 0584 962313 > fax: +39 0584 1660272 > mob: +39 339 8844549 > > http://www.geo-solutions.it > http://twitter.com/geosolutions_it > > *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003* > > Le informazioni contenute in questo messaggio di posta elettronica e/o > nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il > loro utilizzo è consentito esclusivamente al destinatario del messaggio, > per le finalità indicate nel messaggio stesso. Qualora riceviate questo > messaggio senza esserne il destinatario, Vi preghiamo cortesemente di > darcene notizia via e-mail e di procedere alla distruzione del messaggio > stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, > divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od > utilizzarlo per finalità diverse, costituisce comportamento contrario ai > principi dettati dal D.Lgs. 196/2003. > > > > The information in this message and/or attachments, is intended solely for > the attention and use of the named addressee(s) and may be confidential or > proprietary in nature or covered by the provisions of privacy act > (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection > Code).Any use not in accord with its purpose, any disclosure, reproduction, > copying, distribution, or either dissemination, either whole or partial, is > strictly forbidden except previous formal approval of the named > addressee(s). If you are not the intended recipient, please contact > immediately the sender by telephone, fax or e-mail and delete the > information in this message that has been received in error. The sender > does not give any warranty or accept liability as the content, accuracy or > completeness of sent messages and accepts no responsibility for changes > made after they were sent or for other risks which arise as a result of > e-mail transmission, viruses, etc. > > ------------------------------------------------------- > -- Atenciosamente, César Augusto R. Ribeiro
------------------------------------------------------------------------------
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
