Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. controlling 'min occurs' in WSDL

controlling 'min occurs' in WSDL

Scheduled Pinned Locked Moved C#
wcfquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    avneeshb
    wrote on last edited by
    #1

    Hi! I wanted to find out if we can control the 'min occurs' and 'max occurs' values in a the wsdl that is generated automatically when ?WSDL is used. I am wondering if there is some attribute that we could use with the webservice method code itself. Thanks!

    H 1 Reply Last reply
    0
    • A avneeshb

      Hi! I wanted to find out if we can control the 'min occurs' and 'max occurs' values in a the wsdl that is generated automatically when ?WSDL is used. I am wondering if there is some attribute that we could use with the webservice method code itself. Thanks!

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      If you're looking to change the WSDL that is generated, see the System.Web.Services.Description namespace in the .NET Framework SDK. There are ways to modify the WSDL, but unless the client understands what to make of those changes, it really doesn't matter. The other option is to write-out the WSDL yourself, which isn't unheard of (several articles on MSDN deal with this). As an alternative, you could grab the auto-generated WSDL once and modify it. As far as attribute parameters in either of the System.Web.Services sub-namespaces or the System.Xml.Serialization namespace, there's none that I've seen or that are documented. You might check out the Web Service Enchancements from Microsoft at http://msdn.microsoft.com/webservices/building/wse/default.aspx[^]. It implements several of the Web Services specs and recommendations and may include what you're looking for. I've really only dealt with the WS-Encryption and WS-Signature portions of it.

      Microsoft MVP, Visual C# My Articles

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups