News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

Advertisement

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope">
<s:Header>
<h:StoreId xmlns:h="http://www.contoso.com">6495</h:StoreId>
</s:Header>
<s:Body>
<CheckStockRequest xmlns="http://www.contoso.com">
<ItemId>2469<ItemId>
</CheckStockRequest>
</s: Body>
</s:Envelope>

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

  1. [MessageContract(WrapperName="http://www.contoso.com")]
    public class CheckStockRequest
    {
    [MessageHeader(Namespace="http://www.contoso.com")]
    public int Storeld{get; set.}
    [MessageBodyMember(Namespace="http://www.contoso.com")]
    public int Itemld{get set;)
    }
  2. [MessageContract(WrapperNamespace="http://www.contoso.com")]
    public class CheckStockRequest
    {
    [MessageHeader(Namespace="http://www.contoso.com")]
    public int Storeld{get; set;}
    [MessageBodyMember(Namespace="http://www contoso.com")]
    public int ltemld{get; set;}
    }
  3. [MessageContract(WrapperNamespace="http://www.contoso.com")]
    public class CheckStockRequest
    {
    [MessageHeader(Namespace="http://www.contoso.com")]
    public int Storeld {get; set;}
    public int ltemld {get; set;}
    }
  4. [MessageContract(WrapperNamespace="http://www.contoso.com")]
    public class CheckStockRequest
    {
    [MessageHeader(Namespace="http://www.contoso.com")]
    public int Storeld {get; set;}
    [MessageBodyMember]
    public int ItemId(get; set;}
    }
Answer: Answer is b
comments powered by Disqus
Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;