引用项目的配置文件:
<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提供的方法的返回对象的方法。