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..
IDemoWCF.cs
[ServiceContract]
public interface IDemoWCF
{
[OperationContract]
void DoWork();
[OperationContract]
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 :
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehavior">
<serviceMetadata httpGetEnabled="True"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service behaviorConfiguration="ServiceBehavior" name="DemoWCF">
<endpoint address="" binding="basicHttpBinding" contract="IDemoWCF">
</endpoint>
</service>
</services>
</system.serviceModel>
}
Please give me one good solution for it..
Best Regards,
Nani