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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:20:53+00:00 2026-06-18T12:20:53+00:00

When I create a proxy to my service, some extra parameters are added as

  • 0

When I create a proxy to my service, some extra parameters are added as XmlIgnoreAttribute. For example:

Interface method contract declaration:

[OperationContract]
void AddToList(int integerToAdd);

Method implementation:

public void AddToList(int integerToAdd) {
    intList.Add(integerToAdd);
}

Now, here is what this method actually looks like when I generate a proxy to my service dynamically:

/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/IService1/AddToList", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void AddToList(int integerToAdd, [System.Xml.Serialization.XmlIgnoreAttribute()] bool integerToAddSpecified)
{
    this.Invoke("AddToList", new object[] {integerToAdd, integerToAddSpecified});
}

If I have the ParameterInfo object for this parameter, how can I check that this parameter has been marked as XmlIgnoreAttribute?

If this is not a good way to check for these auto-generated parameters, then is there another (better) way to check for them?

Bonus: Will there ever be a case where non-boolean types are generated and marked as XmlIgnoreAttribute?

  • 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-06-18T12:20:55+00:00Added an answer on June 18, 2026 at 12:20 pm

    I assume you would use ParameterInfo.GetCustomAttributes() ?

    ParameterInfo secondParam = ..
    object[] attribs = 
              secondParam.GetCustomAttributes(typeof(XmlIgnoreAttribute), false);
    //the second bool param is ignored. See the docs.
    //check if => attribs has anything..
    

    (1) I’m not sure why you’re checking these parameters anything so not sure if it’s good/better. (2) Not sure about the second question. I assume this is from VS code gen (svcutil?) Maybe some MSFT’s who’s designed this may know better.

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

Sidebar

Related Questions

I create webservice proxy and I am sending some data do async web service.
I create a proxy service with Carbon Studio, this service has a Throttling policy,
How can I create client proxy if I know only the type of service
I use mule-standalone-3.3.0 CE. I create pattern web service proxy, and my config: <pattern:web-service-proxy
I'm trying create a small http proxy service. This is not working so well.
I have created a WCF service with some endpoints(with mex endpoint). If i create
I am working on an ASMX web service; trying to create a method that
I created a proxy of a Web Service with Visual Studio 2008, and it
Why can NHibernate create a proxy for classes with properties that have private setters
I'm using Sudzc to create my WebService proxy classes for an iOS app. The

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.