Which code should you use?
You are creating a Web service.
You need to add an operation that can be called without returning a message to the caller.
Which code should you use?
Which code segment should you use?
A SOAP message has the following body.
<soap:Body>
<tns:Greeting>
<Person href="#id1" />
</tns:Greeting>
<tns:User id="id1" xsi:type="tns:User">
<GivenName xsi:type="xsd:string">givenname</GivenName>
<SurName xsi:type="xsd:string">surname</SurName>
</tns:User>
</soap:Body>
You need to configure the Greeting method to accept the SOAP message.
Which code segment should you use?
Which two actions should you perform?
A Windows-based application sends messages to the TestMessageQueue queue.
An acknowledgement message must be sent to the TestMessageQueueAdmin queue when:
The original message is retrieved from TestMessageQueue.
The message has not been retrieved from TestMessageQueue after a specified time period.
The following code is used to send a message to the TestMessageQueue queue.
(Line numbers are included for reference only.)
01 MessageQueue mq = new MessageQueue(".TestMessageQueue");
02 MessageQueue mqAdmin = new MessageQueue(".TestMessageQueueAdmin");
03 Message m = new Message(messageBody);
04 m.AcknowledgeType = AcknowledgeTypes.PositiveReceive;
05 mq.Send(m);
You need to ensure that an acknowledgement message is sent to the TestMessageQueueAdmin queue as required.
Which two actions should you perform?
(Each correct answer presents part of the solution. Choose two.)
What are two possible ways to achieve this goal?
You use Microsoft Visual Studio 2005 to create a custom Web service discovery system that contains Disco files for your Web services.
You need to have the Disco file for each of your Web services for auditing purposes.
What are two possible ways to achieve this goal?
(Each correct answer presents a complete solution. Choose two.)
Which code segment should you use?
You create a Web service that exposes a Web method named CalculateStatistics.
The response returned by the CalculateStatistics method for each set of input parameters changes every 60 seconds.
You need to ensure that all requests to the CalculateStatistics method that have the same set of input parameters, and that occur within a 60-second time period, calculate the statistics only once.
Which code segment should you use?
Which two actions should you perform?
You are writing an application that handles the batch processing of user accounts.
The application assigns network identities for users by calling the following Web service method.
[WebMethod]
public string GetNetworkID(string name)
{ …}
The application calls the Web
service using the following code.
(Line numbers are included for reference only.)
01 void ProcessPeople(List<Person> people) {
02 PersonService serviceProxy = new PersonService();
03 serviceProxy.GetNetworkIDCompleted += new
04 GetNetworkIDCompletedEventHandler(GetNetworkIDCompleted);
05 for (int i = 0; i < people.Count;i++) {
06 …
07 }
08 }
09
10 void GetNetworkIDCompleted(object sender,
11 GetNetworkIDCompletedEventArgs e){
12 Person p = null;
13 …
14 p.NetworkID = e.Result;
15 ProcessPerson(p);
16 }
You need to ensure that the application can use the data supplied by the Web service to update each Person instance. Which two actions should you perform? (Each correct answer
presents part of the solution. Choose two.)
What should you do to ensure that the requirements shown in the following table are met?
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You write the following code fragment. (Line numbers are included for reference only.)
01 <asp:UpdatePanel ID="upnData" runat="server"
02 ChildrenAsTriggers="false" UpdateMode="Conditional">
03 <Triggers>
04
05 </Triggers>
06 <ContentTemplate>
07 <!– more content here –>
08 <asp:LinkButton ID="lbkLoad" runat="server" Text="Load"
09 onclick="lbkLoad_Click" />
10 <asp:Button ID="btnSubmit" runat="server" Text="Submit"
11 Width="150px" onclick="btnSubmit_Click" />
12 </ContentTemplate>
13 </asp:UpdatePanel>
14 <asp:Button ID="btnUpdate" runat="server" Text="Update"
15 Width="150px" onclick="btnUpdate_Click" />
You need to ensure that the requirements shown in the following table are met.
exhibit What should you do?
Which expression string should you use to set the Expression property of the OrderTotal column?
You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.
The application contains a DataSet class. The DataSet class contains two tables named Order and OrderDetail as shown in the following exhibit.
You add a DataColumn class named OrderTotal to the Order table.
You need to ensure that the OrderTotal column stores the sum of the values in the LineTotal column of the OrderDetail table.
exhibit Which expression string should you use to set the Expression property of the OrderTotal column?
You need to ensure that on synchronization, any new row added to the client application is also added to the S
You create a Microsoft Windows Mobilebased application by using the Microsoft .NET Framework 3.5 and Microsoft Synchronization Services for Microsoft ADO.NET.
The application uses a Microsoft SQL Server 2005 database. The application synchronizes the data in a large table named Products. The Products table is defined in the following manner.
The table has the following characteristics:
The default values are not defined for any column.
All the columns are non-nullable.
The ID and Price columns are synchronized.
You need to ensure that on synchronization, any new row added to the client application is also added to the SQL Server 2005 database.
exhibit Which code segment should you use?
Which code segment should you insert at line 04 to ensure that the values in the AccountSuspendedColumn column
You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The application connects to a Microsoft SQL Server 2005 database.
The application contains a DataTable named CustomerAccts. The structure of the DataTable is as shown in the following table.
You write the following code segment. (Line numbers are included for reference only.)
01 DataColumn AccountSuspendedColumn = new DataColumn();
02 AccountSuspendedColumn.DataType = typeof(Boolean);
03 AccountSuspendedColumn.ColumnName = "AccountSuspended";
04
05 CustomerAccts.Columns.Add(AccountSuspendedColumn);
You need to ensure that the values in the AccountSuspendedColumn column are set to True when the following conditions are satisfied:
The value contained in the LatePaymentsCount column is greater than 10.
The value contained in the OverrideCode column is equal to "EXEMPT".
exhibit Which code segment should you insert at line 04?