• Like
Introducing wcf-slides
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

Introducing wcf-slides

  • 290 views
Published

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
290
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
8
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1.      
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.      
  • 7.    
  • 8.
  • 9.
  • 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.  <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.    
  • 13.
  • 14.
  • 15.    
  • 16.  
  • 17.    
  • 18.
  • 19.      
  • 20.      