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 5973967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:52:32+00:00 2026-05-22T20:52:32+00:00

I have a simple class that contains the required properties for a request to

  • 0

I have a simple class that contains the required properties for a request to the service.

I want a consumer to instantiate this class on their end, fill it up, then pass it back to the service. Maybe the terminology I’m using isn’t exactly right, but I’m sure I’ve read some project notes in the past where this was possible on other systems.

[DataContract]
public class SearchRequestObject
{
    [DataMember]
    public string WebsiteGuid { get; set; }

}

I have both DataContract and DataMember set in my service project. Once I publish it and consume it on another project, I don’t see SearchRequestObject anywhere. I’m guessing this is because it has to be defined in the service’s interface? If so, how?

Thanks.

  • 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-22T20:52:32+00:00Added an answer on May 22, 2026 at 8:52 pm

    Typically, SearchRequestObject would be one of the objects used in one of your service methods, for instance:

    [ServiceContract(ConfigurationName = "IWCFService")]
    public interface ICascadeManagementService
    {
        [OperationContract(Action = "http://tempuri.org/IWCFService/DoSearch")]
        SearchResponseObject DoSearch(SearchRequestObject searchRequest);
    }
    

    When your client classes are then automatically generated, they will include a SearchRequestObject in the reference.cs file which contains the definitions.

    If it’s already being included in a method, it may not be being generated because your client project has a direct reference to the project in which SearchRequestObject is defined, and when you create the service reference you’re reusing types from referenced assemblies. You can check if you have the reference in the references list of the client project, and if you’re reusing types from referenced assemblies in the Advanced section of the Add Service Reference dialog.

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

Sidebar

Related Questions

Say I have this simple form: class ContactForm(forms.Form): first_name = forms.CharField(required=True) last_name = forms.CharField(required=True)
I have a simple class that essentially just holds some values. I have overridden
I have a really simple Java class that effectively decorates a Map with input
I have a really simple class with two methods; One that will be called
I have a simple class called Tuple. which looks like this : class tuple
Very simply put: I have a class that consists mostly of static public members,
I have the simple class using auto-implemented properies: Public Class foo { public foo()
For example I have a simple class like public class Person{ public int Age
I have a very simple class with only one field member (e.g. String). Is
I have a simple database table called Entries: class CreateEntries < ActiveRecord::Migration def self.up

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.