I do not want to change the existing functionality since data is being store on form submit,apart from this i want same data should send to web service so that my client can see the data in their database as well.
You can make it from the server, when you accept your request from the web page, in the controller you can make request to the .asmx server with c# methods -
I know how to call web service and how to make web request , i just want to know how can i attach controller to the umbraco form so that i can do all the code there.
I am beginner in umbraco but have good knowledge of .Net.
Call Webservice On Form Submit
Hi
Could you please guide me to call wb service on form submit.
I have to post data to external database so i am using web service.
Hi Abdullah,
Did you try to use action attribute of form tag ?
Hi Alex,
I do not want to change the existing functionality since data is being store on form submit,apart from this i want same data should send to web service so that my client can see the data in their database as well.
You have only one way - just make 2 requests.
can you please elaborate how can i post form data to asmx web service url.
You can make it from the server, when you accept your request from the web page, in the controller you can make request to the .asmx server with c# methods -
http://stackoverflow.com/questions/4015324/http-request-with-post
Thanks for your revert.
I know how to call web service and how to make web request , i just want to know how can i attach controller to the umbraco form so that i can do all the code there.
I am beginner in umbraco but have good knowledge of .Net.
Abdullah, look at example of creating login form :
http://24days.in/umbraco/2012/creating-a-login-form-with-umbraco-mvc-surfacecontroller/
Form attached to Umbraco controller by URL.
Thanks
You could use a PreValue source? You can set that to the web service and it will build the form for you and wire it into the web service.
is working on a reply...