2012-04-06 14 views
0

こんにちは私は石鹸サービスを作りたいと思います。wcf soap service web.config error

致命的なエラーCに超えた30秒の最大実行時間:\ xamppの\ htdocsに私はそれを実行すると、私は次のエラーを取得するので、サービスが正常に起動するが、私は、PHPから接続カント\ soaptest \ soaptest.phpライン6


行にある:$クライアント=新しいのSoapClient( 'のhttp:// localhostを:?1741/TopicService.svc WSDL'); は、ここで私が間違っているのは何

<system.web> 
    <compilation debug="true" targetFramework="4.0" /> 
    <trace enabled="false"/> 
    <httpRuntime maxRequestLength="100000000" /> 
</system.web> 

<system.serviceModel> 

    <services> 
     <service name="PptxToTopicWebService.TopicService"> 
      <endpoint address="soap" behaviorConfiguration="PptxToTopicWebService.ITopicService" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding1" contract="PptxToTopicWebService.ITopicService" /> 
     </service> 
    </services> 
    <behaviors> 
     <endpointBehaviors> 
      <behavior name="PptxToTopicWebService.ITopicService"> 
      </behavior> 
     </endpointBehaviors> 
     <serviceBehaviors> 
      <behavior name=""> 
       <dataContractSerializer maxItemsInObjectGraph="2147483647" /> 
       <serviceMetadata httpGetEnabled="true" /> 
       <serviceDebug includeExceptionDetailInFaults="true" /> 
      </behavior> 
     </serviceBehaviors> 
    </behaviors> 
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" minFreeMemoryPercentageToActivateService="0" /> 
    <bindings> 
     <basicHttpBinding> 
      <binding name="basicHttpBinding1" maxReceivedMessageSize="10000000" maxBufferSize="10000000"> 
       <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/> 
      </binding> 
     </basicHttpBinding> 
    </bindings> 
</system.serviceModel> 

私のweb.configのですか?

答えて

0

下記のようにエンドポイントを変更してください。それが動作します。サービスの応答時間が長くなっているようです。

<bindings> 
       <basicHttpBinding> 
        <binding name="basicHttpBinding1" maxReceivedMessageSize="10000000" maxBufferSize="10000000" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"> 
         <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/> 
        </binding> 
       </basicHttpBinding> 
      </bindings> 
+0

どうもありがとうございます! –