tags:

views:

29

answers:

1

I am new to WCF so can any one explain what is the use of using the attributes in

Srvice contract attributes like:

  • Namespace
  • ConfigurationName
  • Name
  • CallBackContract
  • HasProtectionLevel
  • Session Mode
  • Protection Level

Operation contract attributes like:

  • Action
  • ReplyAction
  • AsyncOperation
  • IsOneWay
  • IsTerminating

Data contract attributes:

  • IsRequired
  • EmitDefaultValue
  • Order

Can anyone please help me learn more about these attributes.

Thanks...

A: 

The online MSDN documentation is your first source for things like that:

  • Read about the ServiceContractAttribute here
  • Read about the OperationContractAttribute here
  • Read about the DataContractAttribute here

All the MSDN documentation pages contain detailed explanations of all the settings on those contract attributes.

marc_s