none
2个一模一样的wcf调用的问题,帮忙解决下。谢谢! RRS feed

  • 问题

  • 2个一模一样的wcf   部署在2台服务器上,通过wcf上传文件。调用的时候先访问的A服务器可以。当执行B服务器的时候传递的IO为空。上传的文件为空。帮忙解决下 。谢谢。、!配置文件。

    <system.serviceModel>
        <client />
        <bindings>
          <basicHttpBinding>
            <binding name="FileTransferServicesBinding"
                sendTimeout="00:10:00"
              maxReceivedMessageSize="9223372036854775807"
              messageEncoding="Mtom"  transferMode="Streamed">
              </binding>
            <binding name="newBinding" closeTimeout="00:03:00" openTimeout="00:03:00"
              receiveTimeout="00:10:00" sendTimeout="00:03:00" allowCookies="false"
              bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
              maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
              messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
              useDefaultWebProxy="true">
              <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
                maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
            </binding>
          </basicHttpBinding>
        </bindings>
        <services>
          <!-- UploadFile-->
          <service behaviorConfiguration="UploadWcfService.UpLoadServiceBehavior" name="WCF.UploadService.UpLoadService">
            <endpoint address="" binding="basicHttpBinding" bindingConfiguration="FileTransferServicesBinding" contract="WCF.UploadService.IUpLoadService">
            </endpoint>
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
          </service>
          <!--HTML-->
          <service name="WCF.UploadService.CreateHtmlTemplate" behaviorConfiguration="htmlfile">
           
            <endpoint address="" binding="basicHttpBinding" bindingConfiguration="newBinding"  contract="WCF.UploadService.ICreateHtmlTemplate" />
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
          </service>
        </services>
        <behaviors>
          <serviceBehaviors>
            <behavior name="UploadWcfService.UpLoadServiceBehavior">
              <serviceMetadata httpGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="true" />
            </behavior>
            <behavior name="htmlfile">
              <serviceMetadata httpGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="true" />
            </behavior>
            <behavior name="">
              <serviceMetadata httpGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="true" />
            </behavior>      
          </serviceBehaviors>
        </behaviors>
        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
      </system.serviceModel>

    2012年10月12日 11:01

全部回复