SlideShare a Scribd company logo
1 of 4
Download to read offline
52n WPS OpenLayers Client Tutorial
Requirements:
   • Java SDK
   • Apache Tomcat (5.5.28 tested)
   • Apache Maven
          o Important: The current maven version 2.2.1 will not work with the POM.xml.
              Instead you have to use the maven 2.0.11 version.
   • Firebug Plugin for Firefox (optional but recommended)

1. Checkout the SVN client and proxy repository

SVN Client Repository location:
https://svn.52north.org/svn/projects/geoprocessing/WPS OpenLayers/trunk/WPS OpenLayers




SVN Proxy Repository location:
https://svn.52north.org/svn/projects/geoprocessing/WPS OpenLayers proxy/trunk/WPS OpenLayers
proxy
2. Deploy the Proxy Host

Add the "wps_proxy.war" to your [TOMACAT_HOME]/webapps folder. This is the location where the
WpsClient.html expects the proxy host to be, when the application starts. The proxy is needed,
when a remote server, like a Web Feature Service, is requested.

Edit the proxy properties (if required)
If nessesary, change the list of allowed host addresses and ports. This can be done by editing the
proxy.properties, which is part of the wps_proxy.war. The path is wps_proxy.war/WEB-INF/classes/
fi/fgi/wps/proxy.




The default ports include 80,8080 and 9090, as well as "localhost" and some more. In case you changed
somewhat, you must restart your tomcat.

3. Deploy the wps OL client

Execute the „mvn compile“ command in the root of the client repository. Als result you got a new
folder named „OL“ in this directory. If you work with eclipse you have to refresh the project to see the
change.

Now copy the OL folder from the client repository into the [TOMCAT_HOME]/webapps folder.

Check/Set the initial Web Processing Services
The initial service list can be found in the wps-ol-client.js located in the OL/lib folder. As you can see
in the picture below, the standard "http:localhost:8080/wps/WebProcessingService" adress is already
registered. The other services are disabled but remain in the list, just to make clear that it's an array.




Edit the proxy host (if required)
As already mentioned, the proxy host is declared in the Javascript code of the WpsClient.html.
For changing the default settings, open the WpsClient.html in the OL folder and search the
ProxyHost variable inside the init() method.




Edit the WFS used in the client (if required)
By default, the client should request the giv-wps geoserver WFS. Edit the WpsClient.html to adress
other services and layers. Visit geoserver.org to lern how to set up your own local WFS. Read the
„Namespace issue“ at the end of this tutorial if you encounter process failures.
4. Test the client

Start your tomcat. Open your browser and call the client. If the tomcat runs under "localhost:8080" and
you followed the instructions carefully, the client location is "localhost:8080/OL/WpsClient.html".




Open the WPS controls with the "WPS" button on the left side. Now select a process in the "Processes"
select box, set the input parameters in the generated HTML input elements and press the "Execute"
button below.
As known from OpenLayers, the layer switcher is on the right side. It will include the process output
layers which have ComplexData as result.
A literal data result will be displayed in a centered message box.


5. Client development

The wps-ol-client.js file contains the WPS client. This file is merged out of the class structure by
executing the "mvn compile" command in the WPS client root, which contains the POM.xml. You can
work with the merged file, or perhaps for a better understanding, keep on developing the client in
"class-structure".

Go to the repository root and change directory to "src/main/javascript" to find the class-structure of
the client (single Javascript files representing each «class»).

After finishing your work, open the command line and run the "mvn compile" as mentioned before.
This will update the OL folder, so you'll find your client changes merged into the wps-ol-client.js.
Overwride the copy in the tomcat and you're done.

By activating the compressor in the POM.xml, you can speed up your client a little bit. The compressed
version is free of comments and spaces.
Known Issues:

   •   Access to restricted URI denied code: 1012
            o Most likely the proxy settings are incorrect. Check if the adressed server are listed in
               the proxy.properties file, inside the wps_proxy.war.
   •   The namespace issue:
       The WPS cannot handle different process inputs with the same namespace. Using the Geoserver
       WFS can lead to this problem, because the stores contain more than one layer and each store
       can only be accociated with one workspace. For example topp:tasmania_roads and
       topp:tasmania_state_boundaries layer can cause exceptions, when they are used one after the
       other. The solution is to seperate this layers in single stores an give them individual workspaces
       in the geoserver.

More Related Content

What's hot

(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...
(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...
(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...BIOVIA
 
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esbSend email attachment using smtp in mule esb
Send email attachment using smtp in mule esbPraneethchampion
 
Vm component in mule
Vm component in muleVm component in mule
Vm component in mulejaveed_mhd
 
Mulesoft vm transport reference
Mulesoft vm transport referenceMulesoft vm transport reference
Mulesoft vm transport referencekumar gaurav
 
Quartz component in mule demo
Quartz component in mule demoQuartz component in mule demo
Quartz component in mule demoSudha Ch
 
MuleSoft Consuming Soap Web Service - CXF jax-ws-client Module
MuleSoft Consuming Soap Web Service - CXF jax-ws-client ModuleMuleSoft Consuming Soap Web Service - CXF jax-ws-client Module
MuleSoft Consuming Soap Web Service - CXF jax-ws-client ModuleVince Soliza
 
Mule Esb Data Weave
Mule Esb Data WeaveMule Esb Data Weave
Mule Esb Data WeaveMohammed246
 
Quartz component in mule
Quartz component in muleQuartz component in mule
Quartz component in mulejaveed_mhd
 
MuleSoft ESB Message Enricher
MuleSoft ESB Message Enricher MuleSoft ESB Message Enricher
MuleSoft ESB Message Enricher akashdprajapati
 
Basic example using vm component
Basic example using vm componentBasic example using vm component
Basic example using vm componentprudhvivreddy
 
Caching and invalidating with managed store
Caching and invalidating with managed storeCaching and invalidating with managed store
Caching and invalidating with managed storeAnirban Sen Chowdhary
 
Junit in mule demo
Junit in mule demo Junit in mule demo
Junit in mule demo javeed_mhd
 
Getting hands on-experience with UltraESB
Getting hands on-experience with UltraESBGetting hands on-experience with UltraESB
Getting hands on-experience with UltraESBAdroitLogic
 

What's hot (19)

(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...
(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...
(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...
 
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esbSend email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
 
Vm component in mule
Vm component in muleVm component in mule
Vm component in mule
 
Mulesoft vm transport reference
Mulesoft vm transport referenceMulesoft vm transport reference
Mulesoft vm transport reference
 
Mule overview
Mule overviewMule overview
Mule overview
 
Quartz component in mule demo
Quartz component in mule demoQuartz component in mule demo
Quartz component in mule demo
 
Passwords
PasswordsPasswords
Passwords
 
MuleSoft Consuming Soap Web Service - CXF jax-ws-client Module
MuleSoft Consuming Soap Web Service - CXF jax-ws-client ModuleMuleSoft Consuming Soap Web Service - CXF jax-ws-client Module
MuleSoft Consuming Soap Web Service - CXF jax-ws-client Module
 
Jms queues
Jms queuesJms queues
Jms queues
 
Mule Esb Data Weave
Mule Esb Data WeaveMule Esb Data Weave
Mule Esb Data Weave
 
Mule esb :Data Weave
Mule esb :Data WeaveMule esb :Data Weave
Mule esb :Data Weave
 
Quartz component in mule
Quartz component in muleQuartz component in mule
Quartz component in mule
 
MuleSoft ESB Message Enricher
MuleSoft ESB Message Enricher MuleSoft ESB Message Enricher
MuleSoft ESB Message Enricher
 
Accessing jms in mule using groovy
Accessing jms in mule using groovyAccessing jms in mule using groovy
Accessing jms in mule using groovy
 
Basic example using vm component
Basic example using vm componentBasic example using vm component
Basic example using vm component
 
Simple VM in Mule
Simple VM in MuleSimple VM in Mule
Simple VM in Mule
 
Caching and invalidating with managed store
Caching and invalidating with managed storeCaching and invalidating with managed store
Caching and invalidating with managed store
 
Junit in mule demo
Junit in mule demo Junit in mule demo
Junit in mule demo
 
Getting hands on-experience with UltraESB
Getting hands on-experience with UltraESBGetting hands on-experience with UltraESB
Getting hands on-experience with UltraESB
 

Similar to Wps ol client_tutorial-1

New Flash Builder 4 WSDL and HTTP Connectors
New Flash Builder 4 WSDL and HTTP ConnectorsNew Flash Builder 4 WSDL and HTTP Connectors
New Flash Builder 4 WSDL and HTTP Connectorsrtretola
 
Tomcat Configuration (1)
Tomcat Configuration (1)Tomcat Configuration (1)
Tomcat Configuration (1)nazeer pasha
 
Activemq installation and master slave setup using shared broker data
Activemq installation and master slave setup using shared broker dataActivemq installation and master slave setup using shared broker data
Activemq installation and master slave setup using shared broker dataRamakrishna Narkedamilli
 
Synapseindia dot net development web applications with ajax
Synapseindia dot net development  web applications with ajaxSynapseindia dot net development  web applications with ajax
Synapseindia dot net development web applications with ajaxSynapseindiappsdevelopment
 
Oracle Weblogic Server 11g: System Administration I
Oracle Weblogic Server 11g: System Administration IOracle Weblogic Server 11g: System Administration I
Oracle Weblogic Server 11g: System Administration ISachin Kumar
 
Active mq Installation and Master Slave setup
Active mq Installation and Master Slave setupActive mq Installation and Master Slave setup
Active mq Installation and Master Slave setupRamakrishna Narkedamilli
 
Html servlet example
Html   servlet exampleHtml   servlet example
Html servlet examplervpprash
 
Web container and Apache Tomcat
Web container and Apache TomcatWeb container and Apache Tomcat
Web container and Apache TomcatAuwal Amshi
 
Information on Tomcat in cPanel & WHM
Information on Tomcat in cPanel & WHMInformation on Tomcat in cPanel & WHM
Information on Tomcat in cPanel & WHMHTS Hosting
 
Extracting twitter data using apache flume
Extracting twitter data using apache flumeExtracting twitter data using apache flume
Extracting twitter data using apache flumeBharat Khanna
 
Jsp and Servlets
Jsp and ServletsJsp and Servlets
Jsp and ServletsRaghu nath
 
Writing simple web services in java using eclipse editor
Writing simple web services in java using eclipse editorWriting simple web services in java using eclipse editor
Writing simple web services in java using eclipse editorSantosh Kumar Kar
 
Weblogic Console Customization labs
Weblogic Console Customization labsWeblogic Console Customization labs
Weblogic Console Customization labsPeter van Nes
 
Salt Cloud vmware-orchestration
Salt Cloud vmware-orchestrationSalt Cloud vmware-orchestration
Salt Cloud vmware-orchestrationMo Rawi
 

Similar to Wps ol client_tutorial-1 (20)

New Flash Builder 4 WSDL and HTTP Connectors
New Flash Builder 4 WSDL and HTTP ConnectorsNew Flash Builder 4 WSDL and HTTP Connectors
New Flash Builder 4 WSDL and HTTP Connectors
 
Tomcat Configuration (1)
Tomcat Configuration (1)Tomcat Configuration (1)
Tomcat Configuration (1)
 
bjhbj
bjhbjbjhbj
bjhbj
 
Activemq installation and master slave setup using shared broker data
Activemq installation and master slave setup using shared broker dataActivemq installation and master slave setup using shared broker data
Activemq installation and master slave setup using shared broker data
 
Synapseindia dot net development web applications with ajax
Synapseindia dot net development  web applications with ajaxSynapseindia dot net development  web applications with ajax
Synapseindia dot net development web applications with ajax
 
Unit5 servlets
Unit5 servletsUnit5 servlets
Unit5 servlets
 
Oracle Weblogic Server 11g: System Administration I
Oracle Weblogic Server 11g: System Administration IOracle Weblogic Server 11g: System Administration I
Oracle Weblogic Server 11g: System Administration I
 
Tomcat + other things
Tomcat + other thingsTomcat + other things
Tomcat + other things
 
Active mq Installation and Master Slave setup
Active mq Installation and Master Slave setupActive mq Installation and Master Slave setup
Active mq Installation and Master Slave setup
 
Html servlet example
Html   servlet exampleHtml   servlet example
Html servlet example
 
Web container and Apache Tomcat
Web container and Apache TomcatWeb container and Apache Tomcat
Web container and Apache Tomcat
 
Information on Tomcat in cPanel & WHM
Information on Tomcat in cPanel & WHMInformation on Tomcat in cPanel & WHM
Information on Tomcat in cPanel & WHM
 
Extracting twitter data using apache flume
Extracting twitter data using apache flumeExtracting twitter data using apache flume
Extracting twitter data using apache flume
 
Lect06 tomcat1
Lect06 tomcat1Lect06 tomcat1
Lect06 tomcat1
 
Tomcat server
 Tomcat server Tomcat server
Tomcat server
 
Jsp and Servlets
Jsp and ServletsJsp and Servlets
Jsp and Servlets
 
Writing simple web services in java using eclipse editor
Writing simple web services in java using eclipse editorWriting simple web services in java using eclipse editor
Writing simple web services in java using eclipse editor
 
Weblogic Console Customization labs
Weblogic Console Customization labsWeblogic Console Customization labs
Weblogic Console Customization labs
 
Salt Cloud vmware-orchestration
Salt Cloud vmware-orchestrationSalt Cloud vmware-orchestration
Salt Cloud vmware-orchestration
 
Lampstack (1)
Lampstack (1)Lampstack (1)
Lampstack (1)
 

Recently uploaded

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 

Recently uploaded (20)

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 

Wps ol client_tutorial-1

  • 1. 52n WPS OpenLayers Client Tutorial Requirements: • Java SDK • Apache Tomcat (5.5.28 tested) • Apache Maven o Important: The current maven version 2.2.1 will not work with the POM.xml. Instead you have to use the maven 2.0.11 version. • Firebug Plugin for Firefox (optional but recommended) 1. Checkout the SVN client and proxy repository SVN Client Repository location: https://svn.52north.org/svn/projects/geoprocessing/WPS OpenLayers/trunk/WPS OpenLayers SVN Proxy Repository location: https://svn.52north.org/svn/projects/geoprocessing/WPS OpenLayers proxy/trunk/WPS OpenLayers proxy
  • 2. 2. Deploy the Proxy Host Add the "wps_proxy.war" to your [TOMACAT_HOME]/webapps folder. This is the location where the WpsClient.html expects the proxy host to be, when the application starts. The proxy is needed, when a remote server, like a Web Feature Service, is requested. Edit the proxy properties (if required) If nessesary, change the list of allowed host addresses and ports. This can be done by editing the proxy.properties, which is part of the wps_proxy.war. The path is wps_proxy.war/WEB-INF/classes/ fi/fgi/wps/proxy. The default ports include 80,8080 and 9090, as well as "localhost" and some more. In case you changed somewhat, you must restart your tomcat. 3. Deploy the wps OL client Execute the „mvn compile“ command in the root of the client repository. Als result you got a new folder named „OL“ in this directory. If you work with eclipse you have to refresh the project to see the change. Now copy the OL folder from the client repository into the [TOMCAT_HOME]/webapps folder. Check/Set the initial Web Processing Services The initial service list can be found in the wps-ol-client.js located in the OL/lib folder. As you can see in the picture below, the standard "http:localhost:8080/wps/WebProcessingService" adress is already registered. The other services are disabled but remain in the list, just to make clear that it's an array. Edit the proxy host (if required) As already mentioned, the proxy host is declared in the Javascript code of the WpsClient.html. For changing the default settings, open the WpsClient.html in the OL folder and search the ProxyHost variable inside the init() method. Edit the WFS used in the client (if required) By default, the client should request the giv-wps geoserver WFS. Edit the WpsClient.html to adress other services and layers. Visit geoserver.org to lern how to set up your own local WFS. Read the „Namespace issue“ at the end of this tutorial if you encounter process failures.
  • 3. 4. Test the client Start your tomcat. Open your browser and call the client. If the tomcat runs under "localhost:8080" and you followed the instructions carefully, the client location is "localhost:8080/OL/WpsClient.html". Open the WPS controls with the "WPS" button on the left side. Now select a process in the "Processes" select box, set the input parameters in the generated HTML input elements and press the "Execute" button below. As known from OpenLayers, the layer switcher is on the right side. It will include the process output layers which have ComplexData as result. A literal data result will be displayed in a centered message box. 5. Client development The wps-ol-client.js file contains the WPS client. This file is merged out of the class structure by executing the "mvn compile" command in the WPS client root, which contains the POM.xml. You can work with the merged file, or perhaps for a better understanding, keep on developing the client in "class-structure". Go to the repository root and change directory to "src/main/javascript" to find the class-structure of the client (single Javascript files representing each «class»). After finishing your work, open the command line and run the "mvn compile" as mentioned before. This will update the OL folder, so you'll find your client changes merged into the wps-ol-client.js. Overwride the copy in the tomcat and you're done. By activating the compressor in the POM.xml, you can speed up your client a little bit. The compressed version is free of comments and spaces.
  • 4. Known Issues: • Access to restricted URI denied code: 1012 o Most likely the proxy settings are incorrect. Check if the adressed server are listed in the proxy.properties file, inside the wps_proxy.war. • The namespace issue: The WPS cannot handle different process inputs with the same namespace. Using the Geoserver WFS can lead to this problem, because the stores contain more than one layer and each store can only be accociated with one workspace. For example topp:tasmania_roads and topp:tasmania_state_boundaries layer can cause exceptions, when they are used one after the other. The solution is to seperate this layers in single stores an give them individual workspaces in the geoserver.