how to display MinOccurs, name tag in wsdl file using WCF?

Posted by Nani.gdm under WCF on 3/8/2011 | Points: 10 | Views : 3199 | Status : [Member] | Replies : 1
Hi Experts,

i have a small problem in wcf,

i have written a service using WCF ,if i see the WSDL file i am not able to see the Minoccurs an name tags,

i want to show tha tag in WSDL for that what settings do i need to change in my program.

help me..


public interface IDemoWCF

void DoWork();
int add(int a, int b);


DemoWCF.cs :

public class DemoWCF : IDemoWCF

public int add(int a,int b)
int c = a + b;
return c;


web.config is :

<behavior name="ServiceBehavior">
<serviceMetadata httpGetEnabled="True"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
<service behaviorConfiguration="ServiceBehavior" name="DemoWCF">
<endpoint address="" binding="basicHttpBinding" contract="IDemoWCF">

Please give me one good solution for it..

Best Regards,



Posted by: Sutotpal on: 3/9/2011 [Member] Starter | Points: 25


Please see this link, it may be hlpful

Best Regards,

Nani.gdm, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response