zoukankan      html  css  js  c++  java
  • webServices

    引用项目的配置文件:

    <system.serviceModel>
    <bindings>
    <basicHttpBinding>
    <!--旅游供应-->
    <binding name="TripServiceSoap" closeTimeout="00:01:00" openTimeout="00:01:00"
    receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
    bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
    maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
    messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
    useDefaultWebProxy="true">
    <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
    maxBytesPerRead="4096" maxNameTableCharCount="16384" />
    <security mode="None">
    <transport clientCredentialType="None" proxyCredentialType="None"
    realm="" />
    <message clientCredentialType="UserName" algorithmSuite="Default" />
    </security>
    </binding>
    </basicHttpBinding>
    </bindings>
    <client>
    <endpoint address="http://localhost:28190/Services/TripService.asmx" binding="basicHttpBinding" bindingConfiguration="TripServiceSoap" contract="TripService.TripServiceSoap" name="TripServiceSoap" />
    </client>
    </system.serviceModel>

    1、可以XML序列化的字典:

    http://weblogs.asp.net/pwelter34/444961

    注:对象的方法是无法序列化的,我们只能调用WebServices提供的方法 访问不到WebServices提供的方法的返回对象的方法。

  • 相关阅读:
    1657: [Usaco2006 Mar]Mooo 奶牛的歌声
    1610: [Usaco2008 Feb]Line连线游戏
    1660: [Usaco2006 Nov]Bad Hair Day 乱发节
    bzoj1207 [HNOI2004]打鼹鼠
    bzoj1046 [HAOI2007]上升序列
    bzoj3594 [Scoi2014]方伯伯的玉米田
    bzoj1878 [SDOI2009]HH的项链
    bzoj1293 [SCOI2009]生日礼物
    bzoj3211 花神游历各国
    bzoj3038 上帝造题的七分钟2
  • 原文地址:https://www.cnblogs.com/lxf1117/p/4738660.html
Copyright © 2011-2022 走看看