Which code segment should you insert at line 04?

You are developing a Windows Communication Foundation (WCF) REST service to provide
access to a library book catalog. The following code segment defines the service contract.
(Line numbers are included for reference only.) Library patrons want the ability to search the
catalog by title. You need to ensure that the GetBookByTitle method is exposed as a
service method. Which code segment should you insert at line 04?

You are developing a Windows Communication Foundation (WCF) REST service to provide
access to a library book catalog. The following code segment defines the service contract.
(Line numbers are included for reference only.) Library patrons want the ability to search the
catalog by title. You need to ensure that the GetBookByTitle method is exposed as a
service method. Which code segment should you insert at line 04?

A.
<WebGet(UriTemplate:=”Book/{title}”)>

B.
<WebGet(UriTemplate:=”BookByTitle/{title)”)>

C.
<WebGet(UciTemplate:-“Book/{titleToSeacch)”)>

D.
<WebGet(UriTemplate:-“{titleToSearch}”)>



Leave a Reply 0

Your email address will not be published. Required fields are marked *