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

  • SEARCH
  • Home
  • 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 6848549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:52:55+00:00 2026-05-27T00:52:55+00:00

How to call WCF Data Services Operations from the WCF Services Client ? I

  • 0

How to call WCF Data Services Operations from the WCF Services Client ?

I have this operation on my service :

[WebInvoke(Method="POST")]
public void Add(int ContractId, string Partners)
{
    ...
}

How do I call this operation from my client ? my client is a C# based application. bearing in mind that the Partners string is a very very long one. it’s a concatenation of the partners Ids like : “1,2,3,4, … 990”.

I have tried doing the following :

        string requestString = string.Format("Add?contractId={0}&Partners={1}",  ContractId, groupIdParam);

        HttpWebRequest request = (HttpWebRequest)WebRequest.Create(serviceUrl +
            requestString);

        request.Method = "POST";

        var response = request.GetResponse();

but I receive the error : “HTTP 414 : Request Uri too long”

  • 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-27T00:52:56+00:00Added an answer on May 27, 2026 at 12:52 am

    Currently OData doesn’t support passing parameters for service operations (that’s what the WebInvoke method is) in the body of the POST request. All the parameters are passed in the URL, and thus they have to be pretty small (usually something below 2048 characters, depends on your web server, proxies and so on).

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

Sidebar

Related Questions

I have a WCF Data service operation : [WebGet] public bool isContractUpToDate(string contractId, string
I have one WCF service that exposes two operations - IncrementList() and GetList(). Client
I have set up some WCF services that I use to call from javascript
I have a WCF data service with some methods I call asynchronously during page_load
I am writing jquery ajax code to call wcf service. In this case WCf
I am trying to call a WCF RESTful service from jQuery. I am using
Here is the scenario, I have a WCF service call that takes one string
Is it possible to POST to a service operation defined in an ADO.NET data
I am using WCF data services to 'query' for data models from my web
I have a per-call WCF service that serves a number of clients. I'm looking

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.