exam questions

Exam 70-487 All Questions

View all questions & answers for the 70-487 exam

Exam 70-487 topic 1 question 123 discussion

Actual exam question from Microsoft's 70-487
Question #: 123
Topic #: 1
[All 70-487 Questions]

DRAG DROP -
You have a Windows Communication Foundation (WCF) service. The service will be consumed by following clients:
✑ a Windows Store application
✑ an ASP.NET Core web application
✑ a Java application developed and hosted by an external vendor
You need to generate proxies for each of these clients to that they can consume the WCF service.
What should you implement? To answer, drag the most appropriate implementation options to the correct application type. Each option may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Each correct selection is worth one point.
NOTE:
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: WSDL endpoint -
If you have any clients who are not .NET (like Java or PHP, for example), ChannelFactory won't work for them as that is specific to .NET and WCF. In that case, you'll either have to publish the metadata or send the client a WSDL endpoint so they can create the proxy via whatever means their language of choice uses.
Box 2: SVCUtil.exe and ChannelFactory
The use of the following classes is supported for Windows Store Applications:

ChannelFactory -
DuplexChannelFactory<TChannel>

CallbackBehaviorAttribute -
Svcutil.exe can be used to generate the proxy class file. This tool generates the proxy class file and the App.config file.

Box 3: Connected Services -
In Asp.Net core you will notice that, we don't have the option "Add Service Reference like in the older .Net Framework. The solution for this is
WCFConectedService.

Service reference -
The Asp.Net core web app can use service references to create service contracts

Box 4: Service reference -
The Windows Forms app can use service references to create service contracts

WCF Connected services -
Incorrect Answers:
Disco.exe is a legacy tool. Windows Communication Foundation should be used instead.
The .NET Configuration Code Generator is also an outdated legacy tool.
References:
https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/accessing-wcf-services-with-a-windows-store-client-app https://docs.microsoft.com/en-us/dotnet/framework/wcf/servicemodel-metadata-utility-tool-svcutil-exe https://aspdotnetcodehelp.wordpress.com/2017/03/27/how-to-access-wcf-service-in-asp-net-core-application/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
dosper
Highly Voted 5 years, 5 months ago
WSDL ServiceReference WCF Connected Service ServiceReference
upvoted 11 times
MaverickCalibre
5 years, 4 months ago
Excerpts from the link provided for answer as WSDL ServiceReference WCF Connected Service ServiceReference To call a WCF service from a Windows Store application, use the Add Service Reference feature of Visual Studio 2012. You will notice a few changes in the functionality of Add Service Reference when done within a Windows Store application.
upvoted 3 times
yuri_y
4 years, 10 months ago
Using Add Service Reference to add a web service reference to a Windows Runtime Component isn’t supported. (https://docs.microsoft.com/en-au/dotnet/framework/wcf/feature-details/accessing-wcf-services-with-a-windows-store-client-app) channelfactory seems fine for me So, the answer is correct
upvoted 1 times
mr_
4 years, 9 months ago
It is weird because on the same MS site there are two conflicting information (or I did not understand them properly): 1) 'To call a WCF service from a Windows Store application, use the Add Service Reference feature of Visual Studio 2012.' 2) 'Using Add Service Reference to add a web service reference to a Windows Runtime Component isn’t supported.' I would go for svcutil and ChannelFactory but I am a little bit confused to be honest.
upvoted 2 times
...
...
...
...
anishk
Most Recent 4 years, 6 months ago
(item 4) For Windows forms to WCF connection-> Service Reference is correct https://docs.microsoft.com/en-us/visualstudio/data-tools/walkthrough-creating-a-simple-wcf-service-in-windows-forms?view=vs-2019#:~:text=%20Walkthrough%3A%20Create%20a%20simple%20WCF%20service%20in,to%20Add%20and%20then%20click%20New...%20More%20
upvoted 1 times
...
seanlim
5 years, 5 months ago
Windows Store client - Service Reference https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/accessing-wcf-services-with-a-windows-store-client-app
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago