Configuring and customizing a Web service application

These questions are based on Cert-70-554VB – MSCert: UPGRADE – MCSD Microsoft .NET Skills to MCPD Enterprise Application Developer Using the Microsoft .NET Framework: Part 2 – Section 1 Microsoft Developer Self-Test Software Practice Test.


Objective: Configuring and customizing a Web service application
SubObjective: Configure SOAP messages


Single Answer, Multiple Choice


As an enterprise application developer, you have created the following Web service for ESoft contractors:


<WebServiceBinding(Name:=”PartnerBinding”, _
Namespace:=”http://www.GeoTrek.com/ESoft”)> _
<WebServiceBinding(Name:=”ExternalBinding”, _
Namespace:=”http://www.ESoft.com/External”, _
Location:=”http://www.ESoft.com/External/ContractSevice.xsd”)> _
<WebService(Namespace:=”http://www.ESoft.com/internal”)> _
Public Class ContractService
                Inherits System.Web.Services.WebService


                Public Sub MakePayment(ByVal amount As Double)
                                ‘implementation
                End Sub


                Public Sub AdjustRate(ByVal amount As Double)
                                ‘implementation
                End Sub
End Class


The MakePayment method should be available to external contractors while the AdjustRate method must remain internal to ESoft. What should you do?



  1. Apply the following attribute to the MakePayment method:
    <SoapDocumentMethod (Binding := “PartnerBinding”)> _
    Apply the following attribute to the AdjustRate method:
    <SoapDocumentMethod (Binding = “ExternalBinding”)> _


  1. Apply the following attribute to the AdjustRate method:
    <SoapDocumentMethod (Binding = “ESoftBinding”)> _


  1. Apply the following attribute to the MakePayment method:
    <SoapDocumentMethod (Binding = “ExternalBinding”)> _


  1. You do not need to do anything in this scenario.

Answer:



  1. Apply the following attribute to the MakePayment method:
    <SoapDocumentMethod (Binding = “ExternalBinding”)> _

Tutorial:
You should apply the following attribute to the MakePayment method as follows:


<SoapDocumentMethod (Binding = “ExternalBinding”)> _
Public Sub MakePayment(ByVal…


cmadmin

ABOUT THE AUTHOR

Posted in Uncategorized|

Comment:

Powered by WebDesk