You need to create a message contract that generates the SOAP envelope Which code segment should you use?

The following is an example of a SOAP envelope: <s:Enelope xmlns:sshttp Ilschemas
xmlso org/soap/enveloper> <s: Header> <h:Stoweld xmlns:hzmttp:/twww.contoso.com”>
6495 <!h: Storeld> <Is: Header> <s: Bodys <CheckStockRequet
xmlns=”httpJIwww.contoso.comy> <Itemlh2469 c/ttemmdd> </CheckStockRequest> <Is:
Bodys <Is: Erwelope> You need to create a message contract that generates the SOAP
envelope Which code segment should you use?

The following is an example of a SOAP envelope: <s:Enelope xmlns:sshttp Ilschemas
xmlso org/soap/enveloper> <s: Header> <h:Stoweld xmlns:hzmttp:/twww.contoso.com”>
6495 <!h: Storeld> <Is: Header> <s: Bodys <CheckStockRequet
xmlns=”httpJIwww.contoso.comy> <Itemlh2469 c/ttemmdd> </CheckStockRequest> <Is:
Bodys <Is: Erwelope> You need to create a message contract that generates the SOAP
envelope Which code segment should you use?

A.
<MessageContract(WrapperName: =“http:IIwww.contoso.com)> Public Class
CheckStockReque <MessageHeader(Name http://www.conto.comn’)> Public Property
Storeld As Integer <MessageBodyMenter(Name: —Thttp://www.contoso.com’)> Public
Property ltemld As Integer End Class

B.
<MessageContract(WrapperNamespace ThttpiIwww. contoso.com”)> Public Class
CheckStockRequest <MessageHeader(Namespace:z”http:/Iwww.contoso. comn’)> Public

Property Storeld As Integer <MessageBodyMember(Namespace:
‘http://www.contoso.com”)> Public Property ltemld As Integer End Class

C.
<MessageContract(WrapperNamespace: =http://www.cortoso.comn”)> Public Class
CheckStockReque <MessageHeader(Namespace. ‘http://www.contoso.com)> Public
Property Storeld As Integer Public Property Itemld As Integer End Class

D.
<MessageContract(WrapperNamespace: http://www.conoso.comn”)> Public Class
CheckStockRequest <MessageHeader(Namespace:z’http://www.contoso.com”)> Public
Property Storeld As Integer cMessageBodyMernber0>a Public Property Itemld As Integer
End Class



Leave a Reply 0

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