- Nov 6, 2004
- 324
- 0
- 0
Hi, this is in regard to a school project, but not with regard to a solution itself.
I am working on an ASP.NET app that will be consuming WSDL/SOAP web services. Originally I thought of including a control class that would take the input from the web forms then call the web services from within that control class when a button is pressed on the form. But it is unlikely it would really do anything but that, as the data following validation can be passed directly to the web service. Originally I had thought of using the class to store data, but ASP.NET already has that functionality (e.g. ViewState, Sessions, Application State, etc) built in.
So now I'm thinking it might be better just calling the web services from the event handlers since at this juncture there seems to be no reason to add additional classes. Thus my question: is it considered bad form to invoke web services directly from the web form instead of including a sort of control class to take the web form data and then invoke the web service from within it (the control class)?
Thanks, sorry this is a little long-winded. I sometimes get hung up on niggling points or if doing something a certain way is the "best practice."
I am working on an ASP.NET app that will be consuming WSDL/SOAP web services. Originally I thought of including a control class that would take the input from the web forms then call the web services from within that control class when a button is pressed on the form. But it is unlikely it would really do anything but that, as the data following validation can be passed directly to the web service. Originally I had thought of using the class to store data, but ASP.NET already has that functionality (e.g. ViewState, Sessions, Application State, etc) built in.
So now I'm thinking it might be better just calling the web services from the event handlers since at this juncture there seems to be no reason to add additional classes. Thus my question: is it considered bad form to invoke web services directly from the web form instead of including a sort of control class to take the web form data and then invoke the web service from within it (the control class)?
Thanks, sorry this is a little long-winded. I sometimes get hung up on niggling points or if doing something a certain way is the "best practice."