0

こんにちは私は石鹸サービスを作りたいです。実行すると、サービスは正常に開始されますが、次のエラーが発生するため、phpから接続できません。

致命的なエラー: 6行目のC:\ xampp \ htdocs \ soaptest\soaptest.phpで最大実行時間が30秒を超えました

6行目は次のとおりです。$client= new SoapClient('http:// localhost:1741 / TopicService.svc?wsdl'); これが私のweb.configです

<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>

私は何が間違っているのですか?

4

1 に答える 1

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>
于 2012-04-06T10:55:47.317 に答える