开发者

Sending Parameters to Web Services

Good Morning,

I'm building an ASP.NET MVC3 event ticketing site that relies on 4 separate web services from Razorgator, StubHub, TicketsNow and one other. The site owner wants to limit the events for which tickets are sold. Therefore, a search function is built into the site w开发者_JS百科herein the site's database returns events meeting search criteria. The task now is to make the call to each of the 4 ticketing web services to retrieve ticket availability, seating and pricing.

Question: How do I specify parameters such as the event ID in my web service call? Is it best to grab the ticket agency's entire catalog, save it to a database table, and do the search from there? (assuming regular updates of ticket data) Or, should I request the entire catalog of tickets and do the event ID matching after the request is made?

Thanks much for your suggestions.


Not sure how you think this, but:

  1. Don't ever transfer large amount of data.
  2. Perform critical (resource consuming tasks) as centralized as possible. For example, give as much work as possible to SQL Server and get from the database only the data you are interested in.
  3. Keep the role of each webservice intact. Each one should do it's own job, don't mix business logic between them.
  4. Remember, each call to webservice need XML serialization/deserialization = time (processor power) + space (memory).
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜