Advertisement

08.17.2008 at 10:43PM PDT, ID: 23655485
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.1

Alternative to using svcutil.exe?  (Can't create interface for ServiceReference)

Asked by dparkes in Web Services, C# Programming Language, WebApplications

Hello, this is a very beginner question.  In learning about WCF and webservices, I've been using svcutil.exe to generate two files like the instructions tell me to do when I go to the service.svc webpage.  That's been working fine.

But it is cumbersome to have to regenerate those files every time an update is done to the service.

Is creating a service reference (through the VS designer) an alternative to using this command line technique?

In VS I can create a service reference that finds the operations in my service, but I cannot figure out how to use them.

For instance, I have a helloworld operation that simply returns a string.

I create ServiceReference1 through the designer in VS.  I know ServiceReference1.IService contains helloworld, but I am unable to create the object necessary to use it.

When I try this:
ServiceReference1.IService sr = new ServiceReference1.IService();

It tells me "Cannot create an abstract class or interface for 'myApp.ServiceReference1.IService".

Is there a way to get this to work, or am I approaching this all wrong?

This may just be a beginners coding issue, where I need to add something to the Service class, to get the interface to work, but I'm not sure.
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
//Service.cs:
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Data;
using System.Data.OleDb;
 
// NOTE: If you change the class name "Service" here, you must also update the reference to "Service" in Web.config.
 
 
public class Service : IService
{
    public string helloWorld()
    {
        return "Hello World!";
    }
}
 
 
 
//IService.cs:
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Data;
 
// NOTE: If you change the interface name "IService" here, you must also update the reference to "IService" in Web.config.
[ServiceContract]
public interface IService
{
    [OperationContract]
    string helloWorld();
}
[+][-]08.18.2008 at 12:06AM PDT, ID: 22249882

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.18.2008 at 12:34AM PDT, ID: 22249996

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.18.2008 at 05:52AM PDT, ID: 22251315

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.18.2008 at 07:59PM PDT, ID: 22256983

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.18.2008 at 10:25PM PDT, ID: 22257370

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.18.2008 at 10:31PM PDT, ID: 22257385

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Web Services, C# Programming Language, WebApplications
Sign Up Now!
Solution Provided By: kaylanreilor
Participating Experts: 2
Solution Grade: A
 
 
[+][-]08.19.2008 at 05:45AM PDT, ID: 22259211

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.19.2008 at 10:01AM PDT, ID: 22261638

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.19.2008 at 10:26AM PDT, ID: 22261884

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628