which code segment should you use?

The following is an example of a SOAP envelope. <s:Enelope
xmlns:se’http://schemas.xmlsoporg/soap/envelopef’> <s: Header> <h:Storeld
xmlns:he”http:/!www.contoso.com”s 6495 <Ih: Storeld> </s:Header> <s:Body>
<CheckStockRequest xmlnsehttp://wwwcorIosocom”> <ltemld>2469 <Iltenld>4
</CheckStoc kRequest> <Is: Body> <Is: Envelope> You need to create a message contract
that generates the SOAP envelope. 1 which code segment should you use?

The following is an example of a SOAP envelope. <s:Enelope
xmlns:se’http://schemas.xmlsoporg/soap/envelopef’> <s: Header> <h:Storeld
xmlns:he”http:/!www.contoso.com”s 6495 <Ih: Storeld> </s:Header> <s:Body>
<CheckStockRequest xmlnsehttp://wwwcorIosocom”> <ltemld>2469 <Iltenld>4
</CheckStoc kRequest> <Is: Body> <Is: Envelope> You need to create a message contract
that generates the SOAP envelope. 1 which code segment should you use?

A.
[MessageContract(WrapperNamespace=”http:I/www.contoso.comn”)] public class
CheckStoc kRequest { [MessageHeader(Namespaces”http:I/www.contosocom”)]o public
nmt Storeld{get; set;) [MessageBodyMember(Namespaces”http://www. contoso . comn”)]
public nmt ltemld{get; set;} }

B.
[MessageContract(WrapperNamespace=”http://www. contosocom”)] pi±lic class
CheckStockRequest { [MessageHeader(Na-mespacesttp://wwwcontoso. comn”)] public mnt
Storeld{get set.} public mnt ltemld{get: set;} )

C.
[MessageContract(WrapperName=”http:I/www. contoso. comn”)] public class
CheckStockRequest { [MessageHeader(Nanez”http:llwww.contoso.com”)] public mnt
Storeld{get; set.} [MessageBodyMember(Namee’intp://www..contoso.com”)] public nit
itemld{get set;) }

D.
(MessageContract(WrapperNamespace=”httpJ/www. contoso.com”)] public class
CheckStockRequest { [MessageHeader(Namespace11tp:IIwww. contoso. comn”)] public int
Storeld{get set;} (MessageBodyMember] public int ltemmld(get set} }



Leave a Reply 0

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