问题 单项选择题

Web服务(WebService)的主要目标是跨平台的操作性,它有许多适用场合。但某些情况下,Web服务也会降低应用程序的性能。下列情况中,______不适合采用Web服务作为主要的系统集成技术。

A.B2B集成
B.集成不同语言编写的在不同平台上运行的应用程序
C.跨越防火墙
D.构建单机应用程序

答案

参考答案:D

解析: Web服务的主要目标是跨平台的互操作性,适合使用WebService的情况如下:
①跨越防火墙:对于成千上万且分布在世界各地的用户来讲,应用程序的客户端和服务器之间的通信是一个棘手的问题。客户端和服务器之间通常都会有防火墙或者代理服务器。用户通过Web服务访问服务器端逻辑和数据可以规避防火墙的阻挡。
②应用程序集成:企业需要将不同语言编写的在不同平台上运行的各种程序集成起来时,Web服务可以用标准的方法提供功能和数据,供其他应用程序使用。
③B2B集成:在跨公司业务集成(B2B集成)中,通过Web服务可以将关键的商务应用提供给指定的合作伙伴和客户。用Web服务实现B2B集成可以很容易地解决互操作问题。
④软件重用:Web服务允许在重用代码的同时,重用代码后面的数据。通过直接调用远端的Web服务,可以动态地获得当前的数据信息。用Web服务集成各种应用中的功能,为用户提供一个统一的界面,是另一种软件重用方式。
在某些情况下,Web服务也可能会降低应用程序的性能。不适合使用Web服务的情况如下:
①单机应用程序:只与运行在本地机器上的其他程序进行通信的桌面应用程序最好不使用Web服务,只使用本地API即可。
②局域网上的同构应用程序:使用同一种语言开发的在相同平台的同一个局域网中运行的应用程序直接通过TCP等协议调用,会更有效。

单项选择题 A1/A2型题
单项选择题

D

Love, success, happiness, family and freedom—how important are these values to you Here is one interview which explores the fundamental questions in life.

Question: Could you introduce yourself first

Answer: My name is Misbah, 27 years old. I was born in a war-torn area. Right now I’m a web designer.

Q: What are your great memories

A: My parents used to take us to hunt birds, climb trees, and play in the fields. For me it was like a holiday because we were going to have fun all day long. Those are my great memories.

Q: Does your childhood mean a lot to you

A: Yes. As life was very" hard, I used to work to help bring money in for the family. I spent my childhood working, with responsibilities beyond my age. However, it taught me to deal with problems all alone. I learnt to be independent.

Q: What changes would you like to make in your life

A : If I could change something in my life, I’ d change it so that my childhood could have taken place in another area. I would have loved to live with my family in freedom. Who cares whether we have much money, or whether we have a beautiful house It doesn’t matter as long as I can live with my family and we are safe.

Q: How do you get along with your parents

A : My parents supported me until I came of age. I want to give back what I’ ve got. That’ s our way. But I am working in another city. My only contact with my parents now is through the phone, but I hate using it. It filters(过滤) out your emotion and leaves your voice only. My deepest feelings should be passed through sight, hearing and touch.

How would Misbah prefer to communicate with his parents()

A. By chatting on the Internet.

B. By calling them sometimes.

C. By paying weekly visits.

D. By writing them letters.