What should you do?

You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. The configuration and customization of Web Service applications forms part of your responsibilities at Domain.com. Domain.com operates as a taxi-cab-for-hire company. You are currently developing an Extensible Markup Language (XML) Web Service that is meant to allow Domain.com to be able to locate the taxis that it provides for its customers. With this Web service application the Domain.com Web service clients will send a SOAP request silimar to the one that is illustrated in the exhibit.

<soap:envelope>
<soap:body>
<ObtainLocation xmlns=”urn:gov:DOT”>
<mobilePhoneNumber>000-000-0000</mobilePhoneNumber> </ObtainLocation>
</soap:body>
<soap:envelope>

You have created a Web method named ObtainLocation. You then apply a SoapDocumentMethod attribute to ObtainLocation. Now you need to configure the SoapDocumentMethod attribute so as to enable it to support the SOAP request.

What should you do? (Each correct answer presents part of the solution. Choose two.)

You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. The configuration and customization of Web Service applications forms part of your responsibilities at Domain.com. Domain.com operates as a taxi-cab-for-hire company. You are currently developing an Extensible Markup Language (XML) Web Service that is meant to allow Domain.com to be able to locate the taxis that it provides for its customers. With this Web service application the Domain.com Web service clients will send a SOAP request silimar to the one that is illustrated in the exhibit.

<soap:envelope>
<soap:body>
<ObtainLocation xmlns=”urn:gov:DOT”>
<mobilePhoneNumber>000-000-0000</mobilePhoneNumber> </ObtainLocation>
</soap:body>
<soap:envelope>

You have created a Web method named ObtainLocation. You then apply a SoapDocumentMethod attribute to ObtainLocation. Now you need to configure the SoapDocumentMethod attribute so as to enable it to support the SOAP request.

What should you do? (Each correct answer presents part of the solution. Choose two.)

A.
The Use property should be set to SoapDocumentUse.Encoded.

B.
The Use property should be set to SoapDocumentUse.Literal.

C.
The ParameterStyle property should be set to SoapParameterStyle.Wrapped.

D.
The ParameterStyle property should be set to SoapParameterStyle.Bare.

Explanation:
SoapDocumentUse.Literal will indicate that literal formatting should be used. This in turn means that elements do not need to explicitly specify their types because the elements would be included in the definitions section of the Web Services Description Language (WSDL) document.
SoapParameterStyle.Wrapped will indicate that the parameter elements have to exist within a single child element of the body element. In this case the mobilePhoneNumber parameter element does not explicitly define its type. Furthermore the mobilePhoneNumber parameter exists as a child element of ObtainLocation.
Incorrect answers:
A: The Use property should not be set to SoapDocumentUse.Encoded as this indicates that the parameter elements must explicitly define their types.
D: The ParameterStyle property should not be set to SoapParameterStyle.Bare as this indicates that parameters may exist as immediate children of the body element in the SOAP request.



Leave a Reply 0

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