PrepAway - Latest Free Exam Questions & Answers

What should you do to ensure that the Web Services Description Language (WSDL) for the Web service describes t

You are creating a Web service.
The Web service must be configured to receive the following message.

<soap:Envelope xmlns:soap=”http://schemas.xmlsoap.org/soap/envelope/”>
<soap:Body>
<givenName xmlns=”urn:SampleNS”>given name</givenName>
<surname xmlns=”urn:SampleNS”>surname</surname>
</soap:Body>
</soap:Envelope>

You need to ensure that the Web Services Description Language (WSDL) for the Web service describes the message.

What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Write the following code for the Web method.
[WebMethod()]
[SoapDocumentMethod(ParameterStyle=SoapParameterStyle.Bare, Use=SoapBindingUse.Literal)]
public string HelloWorld(string givenName, string surname)
{

}

B.
Write the following code for the Web method.
[WebMethod()]
[SoapDocumentMethod(ParameterStyle=SoapParameterStyle.Wrapped,Use=SoapBindingUse.Encoded)]
public string HelloWorld(string givenName, string surname)
{

}

C.
Write the following code for the Web method.
[WebMethod()]
[SoapDocumentMethod(ParameterStyle=SoapParameterStyle.Wrapped, Use=SoapBindingUse.Literal)]
public string HelloWorld(string givenName, string surname)
{

}

D.
Write the following code for the Web method.
[WebMethod()]
[SoapDocumentMethod(ParameterStyle=SoapParameterStyle.Bare, Use=SoapBindingUse.Encoded)]
public string HelloWorld(string givenName, string surname)
{

}


Leave a Reply