You are developing a client that sends several types of SOAP messages to a Windows Communication Foundation (WCF) service method named PostData. PostData is currently defined as follows:[OperationContract]void PostData(Order data);You need to modify PostD

题目

You are developing a client that sends several types of SOAP messages to a Windows Communication Foundation (WCF) service method named PostData. PostData is currently defined as follows:[OperationContract]void PostData(Order data);You need to modify PostData so that it can receive any SOAP message. Which code segment should you use?()

A. [OperationContract(IsOneWay=true, Action="*", ReplyAction="*")] void PostData(Order data);

B. [OperationContract(IsOneWay=true, Action="*", ReplyAction = "*")] void PostData(BodyWriter data);

C. [OperationContract] void PostData(BodyWriter data);

D. [OperationContract] void PostData(Message data);


相似考题
更多“You are developing a client that sends several types of SOAP messages to a Windows Communi ”相关问题
  • 第1题:

    [A] lies [B] lays [C] settles [D] sends


    正确答案:B

    本题考查短语动词辨析。空格处填入的动词与down搭配,相当于及物动词,其主语是the snow,宾语是a treacherous carpetlie down意为“躺下”;lay down意为“放下;记下;拟定”,如:lay down the arms/the rules(放下武器/制定规则);settle down意为“安下心来,定居”;send down只能接sb.作宾语,意为“判某人入狱”,如:He was sent down for ten years for armed robbery.(他因持械抢劫被判入狱十年。)因此[B]符合文意,意为“(大雪)吹落(一块毯子)”。

  • 第2题:

    He's spent years cultivating a knowledge of art.

    A:using
    B:denying
    C:sharing
    D:developing

    答案:D
    解析:
    这句话的意思是:他用了数年的时间学习艺术知识。句中“cultivate”意为“培养”。四个 选项中A项意为“使用”;B项意为“否认”;C项意为“分享”;D项意为“发展,培养”。因此只有 D项最为合适。

  • 第3题:

    在Internet上搜索信息时,下列说法不正确的是 。

    A.windows and client表示检索结果必须同时满足windows和client两个条件

    B.windows or client表示检索结果只需满足windows和client中一个条件即可

    C.windows not client表示检索结果中不能含有client

    D.windows client表示检索结果中含有windows或client


    D

  • 第4题:

    He's spent years cultivating a knowledge of art.

    A:sharing
    B:using
    C:denying
    D:developing

    答案:D
    解析:
    他花费多年培养对艺术的学识。cultivate:培养;share:分享;use:使用;deny:否定; develop:发展,最符合题意。

  • 第5题:

    He's spent years cultivating a knowledge of art.

    A:denying
    B:using
    C:sharing
    D:developing

    答案:D
    解析:
    本句意思:他已花费多年培养对艺术的学识。Cultivate“培养”和develop“发展”意思相 近。spend(time)doing sth./in doing sth.“花(时间)做某事”。第2部分:阅读判断

  • 第6题:

    92、在Internet上搜索信息时,下列说法不正确的是 。

    A.windows and client表示检索结果必须同时满足windows和client两个条件

    B.windows or client表示检索结果只需满足windows和client中一个条件即可

    C.windows not client表示检索结果中不能含有client

    D.windows client表示检索结果中含有windows或client


    D