Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 422207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:03:31+00:00 2026-05-12T19:03:31+00:00

In short: Trying to write a wcf service for a winform-app that invokes a

  • 0

In short: Trying to write a wcf service for a winform-app that invokes a stored procedure on a webserver.
So far no problem – my service exposes the method “execStp(string nameOfStoredProcedure, stpParamList parameterList)”

 [OperationContract]
        int execStp(string stpName, srsWcfLib.Utilities.stpParamList paramList);

where stpParamList is another class holding of a third class stpParams (which basically holds a name/value pair of an SqlParameter

To add parameters to the list, I wrote a method in the second class

public void addParameter(string ParamName, object ParamValue)
        {
            this._Parameters.Add(new stpParam(ParamName, ParamValue));
        } 
List<stpParam> _Parameters = new List<stpParam>();

    [DataMember]
    public List<stpParam> Parameters
    {
        get { return _Parameters; }
        set { _Parameters = value; }
    }

When instantiating the List-class in the win-app

stpParamList stpParams = new stpParamList();

I can access stpParams.Parameters, but NOT stpParams.addParameter (name, value);

What am I missing (obviously)…?

Thank you,
Reinhard

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T19:03:31+00:00Added an answer on May 12, 2026 at 7:03 pm

    WCF only brings over the properties to the client, not the functions. I forget the term they use, but it is basically just a property/field dump that gets sent through.

    To solve this, reference the same Entity library in the client, and under “configure WCF Service” check “reuse reference” for that library.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Long story short: I'm trying to write an app that'll dump IE's history to
I am trying to write a short Rest Service with Zend Framework. But the
I'm trying to write a short function that will let me quickly read in
I'm trying to write a short Wordpress JQuery for Wordpress comments that would allow
I am trying to write a short paper with LaTeX and need to add
Long story short, I'm trying to write some toast-style popup notifications (similar to Growl)
I am trying to write a JTextPane which supports some sort of coloring: as
In short: I'm trying to figure out if I should tell a mail administrator
I'm trying to trouble shoot a web service client in my current project. I'm
I am trying to develop an online translation service (sort of a personal challenge)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.