Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hey everybody

I develop an application web using OpenLayers and GeoExt. I created a page that contains my layers and the layer base. I want to add search and itinerary to my application so i created the panels where i have to put my informations.!

My boss gave me web service of search and itinerary and want me to add them to my application. What he gave me exactly are url of the web service. My question is how to use these url (web service) and how to add them to my application. I do some search and i found that i have to use a post methode of ajax but i have any idea how to use it.

I'm doing my test with NetBeans and i worked using HTML and JavaScript.

Thank you for your help.
Posted
Comments
Kornfeld Eliyahu Peter 20-May-14 8:02am    
Do you want to access some web service from JavaScript?
yassine101 20-May-14 9:06am    
yes !

As you need pure JavaScript (no server side) solution I suggest to learn using jQuery calls...
Start here: Introduction to using jQuery with Web Services[^]
 
Share this answer
 
Comments
yassine101 20-May-14 10:02am    
OK Great ! But i created the labels and the buttons that i will use in my application ! how can i connect them with my web service ? i mean the jQuery work for me in this case ? my buttons and labels was created in my .js file !!
step1. right click on the reference
step2. click on service reference
step3. click on advanced and then select add web reference at the bottom
step4. paste the we reference and click on go and discover
step5. add the discovered service to your project
 
Share this answer
 
Comments
yassine101 20-May-14 9:13am    
sorry but where can i find the reference !! i'm using NetBeans and i searched there and i don't find it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900