The document discusses Windows Communication Foundation (WCF), Microsoft's unified programming model for building service-oriented applications. It enables developers to build secure, reliable, transacted solutions that integrate across platforms and interoperate with existing investments. Some key points discussed include:
- WCF provides a single unified solution rather than requiring different technologies for different communication styles.
- WCF is designed to interoperate well with non-WCF platforms and technologies from other vendors as well as Microsoft technologies that preceded WCF.
- A WCF service exposes methods through a well-defined XML interface, interacting only through data contracts rather than passing complete classes.
- Services and clients agree on their interface but are otherwise independent,
WCF is not just for SOAP based services and can be used with popular protocols like RSS, REST and JSON. Rob Windsor covers URI templates, the importance of HTTP GET in the programmable web, how to expose service operations via HTTP GET, how to control the format of data exposed by service operations, and finally how to use the WebOperationContext to access the specifics of HTTP.
WCF is not just for SOAP based services and can be used with popular protocols like RSS, REST and JSON. Rob Windsor covers URI templates, the importance of HTTP GET in the programmable web, how to expose service operations via HTTP GET, how to control the format of data exposed by service operations, and finally how to use the WebOperationContext to access the specifics of HTTP.
Overview of Microsoft WCF communication technology (Windows Communication Foundation).
WCF is a unified communication framework for distributed .Net applications.
WCF defines a common programming model and unified API for clients and services to send messages between each other.
WCF is the current and future standard for distributed .Net applications.
One of WCFs core concept is ABC which stands for Address, Binding and Contract.
The address defines a service's location. The binding defines how the service can be accessed and the contract defines the service interface.
This common model allows a uniform programming model for distributed applications not only based on web services, but also on message based transports like MSMQ.
This presentation is about WCF and ASP.NET web services. The WCF architecture is introduced in detail and then the differences between WCF services and ASP.NET web services have been discussed.
WCF provides first-class support for building "Web" services that embrace REST design principles using standard Web protocols and data formats. This session illustrates how to build WCF services that support the HTTP uniform interface and different resource representations like XML, JSON, and Atom to enhance your Web 2.0 mash-up solutions. Throughout the session we'll specifically look at some of the new features in WCF 4.0 and WCF Data Services.
Building Services: .NET FX 3.5, SOAP, REST, and Beyond
Most developers will be aware of various Microsoft technologies to help build SOAP services, the latest of which are WCF and WF in .NET FX 3.5, but there’s another world of services outside SOAP. Recently Microsoft has been very active in its support for, and use of, REST as a mechanism for implementing services. This event will cover recent and forthcoming technologies for building services with SOAP and REST, and we’ll explain REST for the uninitiated.
Agenda:
Session 1: The SOAP Story
In this session we’ll do a lighting quick re-cap of what SOAP is, what specs surround it before looking at how far the SOAP programming model has come in Microsoft’s latest-and-greatest stack – Windows Communication Foundation (WCF) V3.5. We’ll talk about different approaches to building services and we’ll take a good look at the integration between WCF V3.5 and Windows Workflow Foundation (WF) V3.5 which opens up a whole new way of implementing services.
Session 2: Time for a REST
Web applications have evolved; using technologies like AJAX and Silverlight they have rich client-side code that wants to consume services, but they prefer JSON, “plain xml” and REST. In this session we’ll introduce REST for the uninitiated, and we’ll demonstrate some of the new and forthcoming technology that Microsoft has for working with REST: WCF 3.5, Web3S, Windows Live Data, and Codename “Astoria”.
For more details and the original slidedeck visit http://www.microsoft.com/uk/msdn/events/new/Detail.aspx?id=316
Session 1 Shanon Richards-Exposing Data Using WCFCode Mastery
At Code Mastery Boston Shannon Richards, Associate Principal Consultant at Magenic talks about Windows Communication Foundation, Microsoft’s framework for building service-oriented applications using .NET
The Windows Communication Foundation (WCF) framework is being used in almost all .NET development platforms: Windows clients, ASP.NET applications, Windows Phone, Server side applications, and in Windows Azure; but have you ever wondered how WCF works? How you can extend it to your organization’s needs? How to monitor its work? How to tune it for better performance and scalability? WCF is the second largest assembly in the .NET Framework and as complex to understand.
In this 1-day workshop we will deep dive into WCF, learn how to monitor WCF services and how to troubleshoot them, how to tweak our services for better performance, how to secure them with transport and message security and discuss the pros and cons of each technique, and how to extend the WCF service pipeline to accommodate our needs.
Overview of Microsoft WCF communication technology (Windows Communication Foundation).
WCF is a unified communication framework for distributed .Net applications.
WCF defines a common programming model and unified API for clients and services to send messages between each other.
WCF is the current and future standard for distributed .Net applications.
One of WCFs core concept is ABC which stands for Address, Binding and Contract.
The address defines a service's location. The binding defines how the service can be accessed and the contract defines the service interface.
This common model allows a uniform programming model for distributed applications not only based on web services, but also on message based transports like MSMQ.
This presentation is about WCF and ASP.NET web services. The WCF architecture is introduced in detail and then the differences between WCF services and ASP.NET web services have been discussed.
WCF provides first-class support for building "Web" services that embrace REST design principles using standard Web protocols and data formats. This session illustrates how to build WCF services that support the HTTP uniform interface and different resource representations like XML, JSON, and Atom to enhance your Web 2.0 mash-up solutions. Throughout the session we'll specifically look at some of the new features in WCF 4.0 and WCF Data Services.
Building Services: .NET FX 3.5, SOAP, REST, and Beyond
Most developers will be aware of various Microsoft technologies to help build SOAP services, the latest of which are WCF and WF in .NET FX 3.5, but there’s another world of services outside SOAP. Recently Microsoft has been very active in its support for, and use of, REST as a mechanism for implementing services. This event will cover recent and forthcoming technologies for building services with SOAP and REST, and we’ll explain REST for the uninitiated.
Agenda:
Session 1: The SOAP Story
In this session we’ll do a lighting quick re-cap of what SOAP is, what specs surround it before looking at how far the SOAP programming model has come in Microsoft’s latest-and-greatest stack – Windows Communication Foundation (WCF) V3.5. We’ll talk about different approaches to building services and we’ll take a good look at the integration between WCF V3.5 and Windows Workflow Foundation (WF) V3.5 which opens up a whole new way of implementing services.
Session 2: Time for a REST
Web applications have evolved; using technologies like AJAX and Silverlight they have rich client-side code that wants to consume services, but they prefer JSON, “plain xml” and REST. In this session we’ll introduce REST for the uninitiated, and we’ll demonstrate some of the new and forthcoming technology that Microsoft has for working with REST: WCF 3.5, Web3S, Windows Live Data, and Codename “Astoria”.
For more details and the original slidedeck visit http://www.microsoft.com/uk/msdn/events/new/Detail.aspx?id=316
Session 1 Shanon Richards-Exposing Data Using WCFCode Mastery
At Code Mastery Boston Shannon Richards, Associate Principal Consultant at Magenic talks about Windows Communication Foundation, Microsoft’s framework for building service-oriented applications using .NET
The Windows Communication Foundation (WCF) framework is being used in almost all .NET development platforms: Windows clients, ASP.NET applications, Windows Phone, Server side applications, and in Windows Azure; but have you ever wondered how WCF works? How you can extend it to your organization’s needs? How to monitor its work? How to tune it for better performance and scalability? WCF is the second largest assembly in the .NET Framework and as complex to understand.
In this 1-day workshop we will deep dive into WCF, learn how to monitor WCF services and how to troubleshoot them, how to tweak our services for better performance, how to secure them with transport and message security and discuss the pros and cons of each technique, and how to extend the WCF service pipeline to accommodate our needs.
A Web service (WS*-) is a software system designed to support interoperable machine-to-machine
interaction over a network (WSDL) i.e between a client and a service. It has an interface described in a
machine-processable format . Other systems interact with the Web service in a manner prescribed by its
description using SOAP messages which is a protocol define by world wide web consortium, typically
conveyed using HTTP with an XML serialization in conjunction with other Web-related standards. Windows
Communication Foundation (WCF) is a framework for building service-oriented applications. Using WCF,
you can send data as asynchronous messages from one service endpoint to another. A service endpoint can
be part of a continuously available service hosted by IIS, or it can be a service hosted in an application like
an .exe file. An endpoint can be a client of a service that requests data from a service endpoint. The messages
can be as simple as a single character or word sent as XML document, or as complex as a stream of binary
data. In this paper ,We gave the Adavantages that are Available by using wcf ,instead of webservices and
other.
Download Complete Material - https://www.instamojo.com/prashanth_ns/
Course Outline...
• Identify the distributed application architecture
• Identify COM+
• Create COM+ serviced components
• Explore COM+ applications
• Identify .NET Remoting
• Communicate messages through remote objects
• Identify Web services
• Create and consume a Web service
• Identify WCF
• Explore the programming model of WCF
• Host a WCF service
• Consume a WCF service
• Identify exception handling
• Implement exception handling
• Implement tracing
• Log messages
• Monitor a WCF Service
• Implement serialization and encoding
• Identify transactions
• Implement transactions in WCF
• Define reliable messaging
• Implement reliable messaging
• Work with peer-to-peer applications
• Define security and Implement security
• Identify the extensibility features in WCF
• Extend the service model layer
• Extend the messaging layer
• Identify RESTful services and Work with RESTful services
Complete Architecture and Development Guide To Windows Communication Foundati...Abdul Khan
This is Complete Architecture and Development Guide To Windows Communication Foundation (WCF) for building service-oriented applications. It enables architect to quickly in understand WCF and developers to build secure, reliable, transacted solutions that integrate across platforms and interoperate with existing investments.
Microsoft Managed Extensibility FrameworkBinu Bhasuran
The Managed Extensibility Framework or MEF is a library for creating lightweight, extensible applications. It allows application developers to discover and use extensions with no configuration required. It also lets extension developers easily encapsulate code and avoid fragile hard dependencies. MEF not only allows extensions to be reused within applications, but across applications as well.
REST defines an architectural style based on a set of constraints for building things the “Web” way. REST is not tied to any particular technology or platform – it’s simply a way to design things to work like the Web.
People often refer to services that follow this philosophy as “RESTful services.”
A tale of scale & speed: How the US Navy is enabling software delivery from l...sonjaschweigert1
Rapid and secure feature delivery is a goal across every application team and every branch of the DoD. The Navy’s DevSecOps platform, Party Barge, has achieved:
- Reduction in onboarding time from 5 weeks to 1 day
- Improved developer experience and productivity through actionable findings and reduction of false positives
- Maintenance of superior security standards and inherent policy enforcement with Authorization to Operate (ATO)
Development teams can ship efficiently and ensure applications are cyber ready for Navy Authorizing Officials (AOs). In this webinar, Sigma Defense and Anchore will give attendees a look behind the scenes and demo secure pipeline automation and security artifacts that speed up application ATO and time to production.
We will cover:
- How to remove silos in DevSecOps
- How to build efficient development pipeline roles and component templates
- How to deliver security artifacts that matter for ATO’s (SBOMs, vulnerability reports, and policy evidence)
- How to streamline operations with automated policy checks on container images
Removing Uninteresting Bytes in Software FuzzingAftab Hussain
Imagine a world where software fuzzing, the process of mutating bytes in test seeds to uncover hidden and erroneous program behaviors, becomes faster and more effective. A lot depends on the initial seeds, which can significantly dictate the trajectory of a fuzzing campaign, particularly in terms of how long it takes to uncover interesting behaviour in your code. We introduce DIAR, a technique designed to speedup fuzzing campaigns by pinpointing and eliminating those uninteresting bytes in the seeds. Picture this: instead of wasting valuable resources on meaningless mutations in large, bloated seeds, DIAR removes the unnecessary bytes, streamlining the entire process.
In this work, we equipped AFL, a popular fuzzer, with DIAR and examined two critical Linux libraries -- Libxml's xmllint, a tool for parsing xml documents, and Binutil's readelf, an essential debugging and security analysis command-line tool used to display detailed information about ELF (Executable and Linkable Format). Our preliminary results show that AFL+DIAR does not only discover new paths more quickly but also achieves higher coverage overall. This work thus showcases how starting with lean and optimized seeds can lead to faster, more comprehensive fuzzing campaigns -- and DIAR helps you find such seeds.
- These are slides of the talk given at IEEE International Conference on Software Testing Verification and Validation Workshop, ICSTW 2022.
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Albert Hoitingh
In this session I delve into the encryption technology used in Microsoft 365 and Microsoft Purview. Including the concepts of Customer Key and Double Key Encryption.
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
Sudheer Mechineni, Head of Application Frameworks, Standard Chartered Bank
Discover how Standard Chartered Bank harnessed the power of Neo4j to transform complex data access challenges into a dynamic, scalable graph database solution. This keynote will cover their journey from initial adoption to deploying a fully automated, enterprise-grade causal cluster, highlighting key strategies for modelling organisational changes and ensuring robust disaster recovery. Learn how these innovations have not only enhanced Standard Chartered Bank’s data infrastructure but also positioned them as pioneers in the banking sector’s adoption of graph technology.
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...SOFTTECHHUB
The choice of an operating system plays a pivotal role in shaping our computing experience. For decades, Microsoft's Windows has dominated the market, offering a familiar and widely adopted platform for personal and professional use. However, as technological advancements continue to push the boundaries of innovation, alternative operating systems have emerged, challenging the status quo and offering users a fresh perspective on computing.
One such alternative that has garnered significant attention and acclaim is Nitrux Linux 3.5.0, a sleek, powerful, and user-friendly Linux distribution that promises to redefine the way we interact with our devices. With its focus on performance, security, and customization, Nitrux Linux presents a compelling case for those seeking to break free from the constraints of proprietary software and embrace the freedom and flexibility of open-source computing.
Communications Mining Series - Zero to Hero - Session 1DianaGray10
This session provides introduction to UiPath Communication Mining, importance and platform overview. You will acquire a good understand of the phases in Communication Mining as we go over the platform with you. Topics covered:
• Communication Mining Overview
• Why is it important?
• How can it help today’s business and the benefits
• Phases in Communication Mining
• Demo on Platform overview
• Q/A
Essentials of Automations: The Art of Triggers and Actions in FMESafe Software
In this second installment of our Essentials of Automations webinar series, we’ll explore the landscape of triggers and actions, guiding you through the nuances of authoring and adapting workspaces for seamless automations. Gain an understanding of the full spectrum of triggers and actions available in FME, empowering you to enhance your workspaces for efficient automation.
We’ll kick things off by showcasing the most commonly used event-based triggers, introducing you to various automation workflows like manual triggers, schedules, directory watchers, and more. Plus, see how these elements play out in real scenarios.
Whether you’re tweaking your current setup or building from the ground up, this session will arm you with the tools and insights needed to transform your FME usage into a powerhouse of productivity. Join us to discover effective strategies that simplify complex processes, enhancing your productivity and transforming your data management practices with FME. Let’s turn complexity into clarity and make your workspaces work wonders!
Dr. Sean Tan, Head of Data Science, Changi Airport Group
Discover how Changi Airport Group (CAG) leverages graph technologies and generative AI to revolutionize their search capabilities. This session delves into the unique search needs of CAG’s diverse passengers and customers, showcasing how graph data structures enhance the accuracy and relevance of AI-generated search results, mitigating the risk of “hallucinations” and improving the overall customer journey.
The Art of the Pitch: WordPress Relationships and SalesLaura Byrne
Clients don’t know what they don’t know. What web solutions are right for them? How does WordPress come into the picture? How do you make sure you understand scope and timeline? What do you do if sometime changes?
All these questions and more will be explored as we talk about matching clients’ needs with what your agency offers without pulling teeth or pulling your hair out. Practical tips, and strategies for successful relationship building that leads to closing the deal.
Pushing the limits of ePRTC: 100ns holdover for 100 daysAdtran
At WSTS 2024, Alon Stern explored the topic of parametric holdover and explained how recent research findings can be implemented in real-world PNT networks to achieve 100 nanoseconds of accuracy for up to 100 days.
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
In his public lecture, Christian Timmerer provides insights into the fascinating history of video streaming, starting from its humble beginnings before YouTube to the groundbreaking technologies that now dominate platforms like Netflix and ORF ON. Timmerer also presents provocative contributions of his own that have significantly influenced the industry. He concludes by looking at future challenges and invites the audience to join in a discussion.
Maruthi Prithivirajan, Head of ASEAN & IN Solution Architecture, Neo4j
Get an inside look at the latest Neo4j innovations that enable relationship-driven intelligence at scale. Learn more about the newest cloud integrations and product enhancements that make Neo4j an essential choice for developers building apps with interconnected data and generative AI.
2. Windows Communication Foundation (WCF) is
Microsoft’s unified programming model for
building service-oriented applications. It
enables developers to build secure, reliable,
transacted solutions that integrate across
platforms and interoperate with existing
investments.
3.
4. When clients call the service, will they call one
method or more than one method?
If they call more than one method, how much time
elapses between method calls?
If they call more than one method, does the service
need to maintain state between calls?
Will clients call the service frequently or
infrequently?
How many clients at a time will call the service?
5.
6.
7. Rather than requiring different technologies for
different communication styles, WCF provides a
single unified solution
8. Reflecting the heterogeneity of most
enterprises, WCF is designed to interoperate
well with the non-WCF world.
There are two important aspects of this:
interoperability with platforms created by other
vendors, and interoperability with the Microsoft
technologies that preceded WCF.
9. WCF-based applications running in a different
process on the same Windows machine
WCF-based applications running on another
Windows machine
10. Applications built on other technologies, such
as Java EE application servers, that support
standard Web services. These applications can
be running on Windows machines or on
machines running other operating systems, such
as Sun Solaris, IBM z/OS, or Linux.
11.
12.
13. Share schema, not class. Unlike older
distributed object technologies, services
interact with their clients only through a well-
defined XML interface. Behaviors such as
passing complete classes, methods and all,
across service boundaries aren’t allowed.
14. Services are autonomous. A service and its clients
agree on the interface between them, but are
otherwise independent. They may be written in
different languages, use different runtime
environments, such as the CLR and the Java Virtual
Machine, execute on different operating systems,
and differ in other ways.
15. A service class, implemented in C# or Visual
Basic or another CLR-based language, that
implements one or more methods.
A host process in which the service runs.
One or more endpoints that allow clients to
access the service. All communication with a
WCF service happens via the service’s
endpoints.
16.
17. A service class is a class like any other, but it has a
few additions. These additions allow the class’s
creator to define one or more contracts that this
class implements.
Each service class implements at least one service
contract, which defines the operations this service
exposes.
The class might also provide an explicit data
contract, which defines the data those operations
convey.
18. Every service class implements methods for its
clients to use.
The creator of the class determines which of its
methods are exposed as client-callable
operations by specifying that they are part of
some service contract.
To do this, a developer uses the WCF-defined
attribute ServiceContract.
20. [OperationContract]
public int Reserve(int vehicleClass, int location,
string dates)
{
int confirmationNumber;
// code to reserve rental car goes here
return confirmationNumber;
}
[OperationContract]
public bool Cancel(int confirmationNumber)
{
bool success;
// code to cancel reservation goes here
return success;
}
public int GetStats()
{
int numberOfReservations;
// code to get the current reservation count goes here
return numberOfReservations;
}
}
21. A WCF service class specifies a service contract
defining which of its methods are exposed to
clients of that service.
Each of those operations will typically convey some
data, which means that a service contract also
implies some kind of data contract describing the
information that will be exchanged.
In some cases, this data contract is defined
implicitly as part of the service contract.
23. A WCF service class is typically compiled into a
library. By definition, all libraries need a host
Windows process to run in.
WCF provides two main options for hosting
libraries that implement services.
One is to use a host process created by either
Internet Information Services (IIS) or a related
technology called the Windows Activation Service
(WAS).
The other allows a service to be hosted in an
arbitrary process.
24. The simplest way to host a WCF service is to rely
on IIS or WAS. Both rely on the notion of a
virtual directory, which is just a shorter alias for
an actual directory path in the Windows file
system.
<%@Service language=c#
class="RentalReservations" %>
25. using System.ServiceModel;
public class ReservationHost
{
public static void Main()
{
ServiceHost s =
new ServiceHost(typeof(RentalReservations));
s.Open();
Console.Writeline("Press ENTER to end service");
Console.Readline();
s.Close();
}
}
26. An address indicating where this endpoint can be
found. Addresses are URLs that identify a machine
and a particular endpoint on that machine.
A binding determining how this endpoint can be
accessed. The binding determines what protocol
combination can be used to access this endpoint
along with other things, such as whether the
communication is reliable and what security
mechanisms can be used.
27. A contract name indicating which service contract
this WCF service class exposes via this endpoint. A
class marked with ServiceContract that implements
no explicit interfaces, such as RentalReservations in
the first example shown earlier, can expose only
one service contract.
In this case, all its endpoints will expose the same
contract. If a class explicitly implements two or
more interfaces marked with ServiceContract,
however, different endpoints can expose different
contracts, each defined by a different interface.
28. BasicHttpBinding: Conforms to the Web Services Interoperability Organization (WS-I) Basic Profiles 1.2
and 2.0, which specify SOAP over HTTP. This binding also supports other options, such as using HTTPS
as specified by the WS-I Basic Security Profile 1.1 and optimizing data transmission using MTOM.
WsHttpBinding: Uses SOAP over HTTP, like BasicProfileBinding, but also supports reliable message
transfer with WS-ReliableMessaging, security with WS-Security, and transactions with WS-
AtomicTransaction. This binding allows interoperability with other Web services implementations that
also support these specifications.
NetTcpBinding: Sends binary-encoded SOAP, including support for reliable message transfer, security,
and transactions, directly over TCP. This binding can be used only for WCF-to-WCF communication.
WebHttpBinding: Sends information directly over HTTP or HTTPS—no SOAP envelope is created. This
binding first appeared in the .NET Framework 3.5 version of WCF, and it’s the right choice for RESTful
communication and other situations where SOAP isn’t required. The binding offers three options for
representing content: text-based XML, JavaScript Object Notation (JSON), and opaque binary encoding.
NetNamedPipesBinding: Sends binary-encoded SOAP over named pipes. This binding is only usable for
WCF-to-WCF communication between processes on the same machine.
NetMsmqBinding: Sends binary-encoded SOAP over MSMQ, as described later in this paper. This
binding can only be used for WCF-to-WCF communication.
29.
30. public static void Main()
{
ServiceHost s =
new ServiceHost(typeof(RentalReservations));
s.AddEndpoint(typeof(RentalReservations),
new BasicHttpBinding(),
"http://www.fabrikam.com/reservation/reserve.svc");
s.Open();
Console.Writeline("Press ENTER to end service");
Console.Readline();
s.Close();
}
33. using System.ServiceModel;
public class RentalReservationsClient
{
public static void Main()
{
int confirmationNum;
RentalReservationsProxy p = new RentalReservationsProxy();
if (p.Check(1, 349, “9/30/09-10/10/09”)) {
confirmationNum = p.Reserve(1, 349, “9/30/09-10/10/09”);
}
p.Close();
}
}