P
pbd22
Hi.
I am generally wondering about the best type of architecture when
designing a web service. It would be helpful to me if somebody could
look at the below "flow" and comment accordingly (does this look
right?). Also, I have two related questions:
1) Will web service calls always be initiated from within the context
of a JavaScript function (as described in #3)?
2) Will the actual web service (the code that grabs data and returns
it as an xml or json - formatted string) always be a separate and
distinct web project from my main Web application?
THIS HAPPENS IN MY MAIN WEB PROJECT:
1) ASPX page button click event
2) fire click_button() on same page
3) from the click_button() function
a call to the location of the web service
server is made passing the click events
associated values. For example:
..getJSON("http://api.domain.com/services/dosomething?q=words")
THIS HAPPENS IN MY WEB SERVICE PROJECT:
4) In the code behind of the dosomething.aspx page, a
SOAP call (SomethingService someserv = new SomethingService()
is
made to a service that that retrieves
data and formats it (say, JSON) for response to the client.
Thanks in advance. I appreciate your time and expertise.
I am generally wondering about the best type of architecture when
designing a web service. It would be helpful to me if somebody could
look at the below "flow" and comment accordingly (does this look
right?). Also, I have two related questions:
1) Will web service calls always be initiated from within the context
of a JavaScript function (as described in #3)?
2) Will the actual web service (the code that grabs data and returns
it as an xml or json - formatted string) always be a separate and
distinct web project from my main Web application?
THIS HAPPENS IN MY MAIN WEB PROJECT:
1) ASPX page button click event
2) fire click_button() on same page
3) from the click_button() function
a call to the location of the web service
server is made passing the click events
associated values. For example:
..getJSON("http://api.domain.com/services/dosomething?q=words")
THIS HAPPENS IN MY WEB SERVICE PROJECT:
4) In the code behind of the dosomething.aspx page, a
SOAP call (SomethingService someserv = new SomethingService()
made to a service that that retrieves
data and formats it (say, JSON) for response to the client.
Thanks in advance. I appreciate your time and expertise.