Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

queries wcf

Posted on 2013-05-14
6
Medium Priority
?
540 Views
Last Modified: 2013-06-05
HI Experts

1.we have a 4 services ,every services is doing by individual.my question is should we take separate
wcf service application for each service or we have to take class library ,in class library we create 4 services
then make webapplication with svc file and deploy it in iis server?

which one will be the best.create a separate service or class library for all service.
issue:if there will be change in one service we need to the changes in class library then reference dll in web site
then again host in iis but for separate app other will not impacted?

please suggest pros and cons,which will be feasible approach

2.how to call web service from wcf service,please provide
code snippet.

A service ==> B Service
B service have method validate(name),A service will call B service and pass name parameter,
it will be validate in B service and if name is matched it will return true to A service otherwise false.
0
Comment
Question by:nicemanish
  • 2
4 Comments
 

Accepted Solution

by:
nicemanish earned 0 total points
ID: 39167320
Hi srosebabu
 can you comment on this question
0
 
LVL 16

Expert Comment

by:Kalpesh Chhatrala
ID: 39210336
Hello,

I suggest create one Service and create 4 Different Function/Class as per your requirement.

below example may help you

http://msdn.microsoft.com/en-us/library/ms751433.aspx
0
 

Author Closing Comment

by:nicemanish
ID: 39221466
well for the best practise.i used 1 wcf service appliaction.inside that application i addesd all 4 services svc and interface.2.i ahve taken the class library for datacontarct for each services.
0

Featured Post

Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as high-speed processing of the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Suggested Courses

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question