c# soap client

open session: true
Unhandled Exception: System.TimeoutException: The request channel timed out while waiting for a reply after 00:01:00. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout. ---> System.Ti
meoutException: The HTTP request to 'http://10.88.23.147:9000/' has exceeded the
allotted timeout of 00:01:00. The time allotted to this operation may have been  a portion of a longer timeout. ---> System.Net.WebException: The operation has timed out
   at System.Net.HttpWebRequest.GetResponse()
   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
   --- End of inner exception stack trace ---
   at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeS
pan timeout)
   --- End of inner exception stack trace ---

Server stack trace:
   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCall Message methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage req Msg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at SoapClientConsoleApplication1.SpRc.SpRcPortType.WaitForCondition(Int32 Condition, Int32 TimeOut)
   at SoapClientConsoleApplication1.SpRc.SpRcPortTypeClient.WaitForCondition(Int
32 Condition, Int32 TimeOut) in c:\users\jhe2\documents\visual studio 2015\Projects\SoapClientConsoleApplication1\SoapClientConsoleApplication1\Service References\SpRc\Reference.cs:line 6240
   at SoapClientConsoleApplication1.Program.Main(String[] args) in c:\users\jhe2\documents\visual studio 2015\ProjectsSoapClientConsoleApplication1\SoapClientC
onsoleApplication1\Program.cs:line 35
Press any key to continue . . .


app.config


<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
    </startup>
    <system.serviceModel>
        <bindings>
            <basicHttpBinding>
                <binding name="SpRc" sendTimeout="1:00:00" />
            </basicHttpBinding>
        </bindings>
        <client>
            <endpoint address="http://10.88.23.147:9000" binding="basicHttpBinding"
                bindingConfiguration="SpRc" contract="SpRc.SpRcPortType" name="SpRc" />
        </client>
    </system.serviceModel>
</configuration>

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326946301&siteId=291194637