Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am trying to incorporate a WPS running in GeoServer into an OpenLayers client. I am using this simple example as my reference.

Using either a local install of OpenLayers.js (v 2.12), or the http://openlayers.org/api/OpenLayers.js, I get an error when the WPSClient is created. In Firefox, I get OpenLayers.WPSClient is not a constructor.

Can anyone help me out with this error?

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

The error is due to WPSClient class not available in your API version. Try this OpenLayers.js instead of yours. You are using a stable version of API for a developement version of WPS example. If you open the link below you can see OpenLayer.WPSClient class written inside the js file.

Hope that helps

share|improve this answer
    
that was it, thanks so much. –  user890 Nov 17 '12 at 12:06
add comment

I have the same problem of user890.

I am using the API version 2.11. Of course OpenLayers.WPSClient class is not written inside. But when I try to use the version given before (Release 2.13 dev) in my web portal, this library looks to have some errors and I can't use it in Eclipse + Tomcat 7. I don't know what can be happening.

When I use the same library in the same project in Dreamweaver without web server I am able to use the library.

Does anyone know what is wrong with it?

Thanks in advance Rafael

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.