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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:38:40+00:00 2026-05-23T14:38:40+00:00

I have a WSDL-fisrt approach to generating Web Services. Basically, this means, I have

  • 0

I have a WSDL-fisrt approach to generating Web Services. Basically, this means, I have a hand-crafted version of how I want my service to look, and then generate the WCF service by using svcutil.

This WSDL contains a lot of useful information such as minOccurs, maxOccurs, restrictions (regexp), etc. However, this information is completely lost when I get my auto-generated classes.

Is there any way I can capture this information in annotations (whether “standard” .net provided, or custom) on the properties so that I can perform validation on the objects after they’ve been deserialized?

Note: I know you can perform validation on the incoming stream through service behaviors and message inspectors, but I’m looking for a solution where I can perform validation on the generated code without having to write complex validation rules that I’ve already defined elsewhere. (i.e., I don’t want duplication)

  • 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-23T14:38:41+00:00Added an answer on May 23, 2026 at 2:38 pm

    Yes, you can translate any information from the WSDL into code, but not necessarily using svcutil. If you’re running up against the limitations of what svcutil supports, you might want to consider another code generation mechanism, such as T4 templates.

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

Sidebar

Related Questions

I have a WSDL file defining the interface for a web service and I
I have an WSDL / Web Service and I need to generate an set
I have a WSDL 1.1 file which describes my Web Service. Now I need
I am using ASIHTTPRequest in IOS. I have aloso a wsdl/soap web services. when
I have to make a web service client from an wsdl file. I have
I have the WSDL for a web service that I cannot currently connect to.
I am trying to hit the following web service with axis2: http://www.webservicex.net/geoipservice.asmx?WSDL I have
I have a .NET web-service client that has been autogenerated from a wsdl-file using
We have couple of MS based web-services, visible as .asmx?WSDL links in intranet. There
I have a simple android application to access a web service. I want to

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.