11.07.2015 Views

y - Net Developer

y - Net Developer

y - Net Developer

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

amrameshreddy.blog.comApplying Behaviors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83Service Behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84Contract Behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86Channel Behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87Operation Behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88Service Metadata Behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88Using the Configuration Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90Configuring Diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91Configuring Instrumentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96PART 2 ■ ■ ■ Programming with WCF■CONTENTS■Chapter 4 Installing and Creating WCF Services . . . . . . . . . . . . . . . . . . . . . . 99Understanding the Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99Hardware Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99Software Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100Installing the .NET 3.0 Development Components . . . . . . . . . . . . . . . 102Understanding Service Contracts . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103Contract First or Code First? . . . . . . . . . . . . . . . . . . . . . . . . . . . 105Service Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106Programming Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107“Hello, World” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107“Hello, World” with Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . 110Hosting on IIS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116ServiceContract Attribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119OperationContract Attribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123ServiceBehavior Attribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126OperationBehavior Attribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127Understanding Data Contracts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127XML Serialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127Data Contracts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134Message Contracts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143ramrameshreddyramrameshreddyix

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!