Last post Nov 11, 2013 04:32 AM by tams115
Oct 07, 2013 05:04 AM|tams115|LINK
we are going to write a webservice but there are two different independent sources like source A, Source B our web which methods will be exposed our webservice. My
Question is should we need to write 2 independent webservices one for each source or write only one. Please suggest which approach is preferable/best and also how.
Also this webserice(s) will expose read and write functionality for source(s).
your prompt response will be highly appriciated.
Oct 07, 2013 04:19 PM|kushalrdalal|LINK
Just write one service and have multiple end points in wcf.
By that you can have under one service two interface with their corresponding methods.
Please check below url for more details -
Oct 07, 2013 11:09 PM|Steven Cheng - MSFT|LINK
For the two separate sources, how did you retrieve data from them in your WCF service? And what kinds of operations will you expose to client-side for accessing and manipulating the data from those sources? If the exposed operations are similar, it would
be reasonable to define the same service/operation contracts and also implement a single code base. However, for the data access part (for retrieving data from sources), you can define separate class library to encapsulate the separate code logic. Thus, even
if you setup two separate services for the two sources, you can reuse most of the WCF service specific code logic (like service contract and operation contract and implementation).
Oct 08, 2013 03:34 AM|tams115|LINK
web service(s) will used just to exhange data in the form XML, All the manipulation will be done at client end. Also we can exchange data in bulk.
Oct 09, 2013 10:09 AM|Illeris|LINK
What are your "sources" ?
Nov 04, 2013 12:11 PM|tams115|LINK
Nov 05, 2013 08:13 AM|Illeris|LINK
The answer is : infinite (in theory).
However ..... Web services run on a web server. In the .NET case, the webserver is IIS. IIS uses queueing to deal with requests. This queueing is not at page or service level, but at server & application level. (see http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/9701f9dd-d40b-4d24-a2df-1d1abc13f764.mspx?mfr=true).
Hence, there is not advantage in have more services in the same application. This does not really impose any benefits.
What does have an impact on your architecture:
Nov 07, 2013 08:13 AM|tams115|LINK
we have an application which perform Leasing Early termination business as its a huge application, we have a requirement customer wants to get ET Quote of a contract, they will call our web serice (Asp.Net) exposed method by sending contract Number as parameter
and we will generate ET quote and send those and some additional information back to consumer.
Our application is is in Power Builder and have this functionality, New web service will interact with existing application as ET logic is wriitern behind just one button clicked and quote is generated.
would you please share your expert oponion in this regard, is it possible if yes how ? otherwise i have to re-write ET quote function which needs almost 2 months effort.
Awaitig for your kind response.
Nov 08, 2013 06:28 AM|Illeris|LINK
Yes you can but it has some limitations. You have 2 options:
The 2nd scenario has some limitations. In the current situation you have fat client code. If you wrap this in a DLL and integrate this in a .NET webservice, this means the powerbuilder code can be invoked multiple times in parallel on the same machine. You
should test this very thouroughly. If the underlying code contains blocking constraints to this concurrency model, this integration will fail.
By the way : do not hesistate to post new questions under new forum topics. This keeps things a little more structured, and will avod people not responding because of previous reviews on your initial question.
Nov 11, 2013 04:32 AM|tams115|LINK
Thank you for your email. would you please help to show right way forward to desing a webserice. Lets suppose if i want to write ET functionality, how should i design my webservice, how functionality should be implimented as there is only one method which
i need to expose for consumer but rest of logic which i need to impliment to calculate
ET Quot is huge amount of code, will it be part of this webservice or ? Should i need to write in seperate interface? I know its a very basic question but i do not know much about .net except some basic. It would be best if there is any real life example....