controlling 'min occurs' in WSDL
-
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!
-
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!
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 theSystem.Web.Services
sub-namespaces or theSystem.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