Introducing wcf-slides

723 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
723
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
14
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Introducing wcf-slides

  1. 1.      
  2. 2.
  3. 3.
  4. 4.
  5. 5.
  6. 6.      
  7. 7.    
  8. 8.
  9. 9.
  10. 10. [DataContract] public class Invoice { [DataMember] public string CustomerId; [DataMember] public string InvoiceDate; [DataMember] public double Amount; ... } [ServiceContract] public interface IInvoiceService { [OperationContract] void SubmitInvoice(Invoice invoice); } public class InvoiceService : IInvoiceService { public void SubmitInvoice(Invoice invoice) { ... // implementation omitted } }
  11. 11.  <configuration> <system.serviceModel> <services> <service name="InvoiceService"> <endpoint address="http://server/invoiceservice" binding="webHttpBinding" contract="IInvoiceService"/> <endpoint address="net.msmq://server/invoicequeue" binding="netMsmqBinding" contract="IInvoiceService"/> <endpoint address="net.tcp://server:8081/invoiceservice" binding="netTcpBinding" contract="IInvoiceService"/> </service> </services> </system.serviceModel> </configuration>
  12. 12.    
  13. 13.
  14. 14.
  15. 15.    
  16. 16.  
  17. 17.    
  18. 18.
  19. 19.      
  20. 20.      

×