>Concorsi
>Forum
>Bandi/G.U.
 
 
 
 
  Login |  Registrati 
Elenco in ordine alfabetico delle domande di 70-320: Developing XML Web services and Server components with Visual C# .NET and the .NET Framework

Seleziona l'iniziale:
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

> Clicca qui per scaricare l'elenco completo delle domande di questo argomento in formato Word!


Fulton buys and sells used refrigerators. External vendors frequently send you XML documents that list one type of used appliances for sale. The documents that you receive contain either only washers or only refrigerators as in the following example.

<!- A document with refrigerators --> <saleList> <refrigerators> <refrigerator type=”freezer on bottom” , price=”210”/> <refrigerators> </saleList> <!- A document with washers --> <saleList> <washers> <washer type=”front load” , price=”145”/> <washer type=”top load” , price=”130”/> </washers> </saleList>

All incoming XML documents are loaded into a MemorySystem object named usedList. You need to automate a process that will discover XML documents contain refrigerator elements. As soon as you ascertain that a document contains refrigerators, you can stop processing the document.

You decide to use Visual studio .NET to develop an application that will contain a Boolean variable named hasRefrigerator. A value of True for this variable means that a document contains refrigerator elements. A value of false means that it does not. You want to ensure that the discovery process occurs as quickly as possible.

What should you do?   Create an XmlDocument object and load it from usedList. Use the SelectSingleNode method to search the XmlDocument object for the saleList/refrigerators node. If this node is found, set hasRefrigerator to True. Otherwise, set hasRefrigerator to False.

Fulton buys and sells used refrigerators. External vendors frequently send you XML documents that list one type of used appliances for sale. The documents that you receive contain either only washers or only refrigerators as in the following example.

<!- A document with refrigerators --> <saleList> <refrigerators> <refrigerator type=”freezer on bottom” , price=”210”/> <refrigerators> </saleList> <!- A document with washers --> <saleList> <washers> <washer type=”front load” , price=”145”/> <washer type=”top load” , price=”130”/> </washers> </saleList>

All incoming XML documents are loaded into a MemorySystem object named usedList. You need to automate a process that will discover XML documents contain refrigerator elements. As soon as you ascertain that a document contains refrigerators, you can stop processing the document.

You decide to use Visual studio .NET to develop an application that will contain a Boolean variable named hasRefrigerator. A value of True for this variable means that a document contains refrigerator elements. A value of false means that it does not. You want to ensure that the discovery process occurs as quickly as possible.

What should you do?   Create an XmlTextReader object on usedList. Loop through usedList by using the MoveToContent method of the XmlTextReader object and comparing for the saleList/refrigerators node. If this node is found, set hasRefrigerator to True. Otherwise, set hasRefrigerator to False.

Fulton Ltd. receives product information from manufactures in the form of an XML documents. The product information is stored in a Microsoft SQL Server database. The format of each XML document varies. Each one is located in a MemoryStream object named newProds.

You create a merge procedure that reads data and schema information in a DataSet object and merges the information into your database. You now need to write code to transfer the XML document and its schema into a DataSet object.

Which code segment should you use?   DataSet products = new DataSet(“prodInfo”); products.ReadXml(newProds);

Fulton provides a credit card processing application for its customers. The current application supports only computers that run on a Microsoft Windows operating system.

You are asked to rewrite the current application as a .NET application. This .NET application does not need to be backward compatible with the current application.

You must ensure that this new application meets the following requirements: • Must support asynchronous processing. • Must be able to pass data through firewalls. • Must pass only SOAP-Compliant formatted data validated by using an XSD schema. • Must not be limited to client computers running on a Microsoft operating system.

You want to accomplish this task by using the minimum amount of development effort.

Which type of .NET application should you use?   XML Web service