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

Posted by Nani.gdm under WCF on 3/8/2011 | Points: 10 | Views : 2805 | 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..

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




Responses

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

Up
0
Down
hi,

Please see this link, it may be hlpful

http://social.msdn.microsoft.com/Forums/en-US/asmxandxml/thread/30d3517b-98c5-44d0-b621-4f3343ce8ea2/

Best Regards,
Sutotpal

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

Login to post response