`
maxer025
  • 浏览: 76392 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
文章分类
社区版块
存档分类
最新评论

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>
分享到:
评论

相关推荐

    C# SOAP Client-开源

    该程序实现了SOAP客户端,该客户端可以将XML发送到Web服务并以交互方式显示响应。 它主要用于测试通常用于保护SOAP流量的各种安全措施。

    C#实现SOAP调用WebService

    最近写了一个SOA服务,开始觉得别人拿到我的服务地址,然后直接添加引用就可以使用了,结果"大牛"告知不行。...让我写一个SOAP调用服务的样例,我有点愣了,因为没做过这方面的,于是搞到了一个Demo,然后学习了下。

    SoapClient:WinRT SOAP 客户端

    SoapClient - WinRT SOAP 客户端 Windows Phone 8.1 不包含 System.ServiceModel 命名空间。 应用程序不能使用 WCF 服务。 该项目允许基于 HttpClient 生成 SOAP Client。 它还可用于 Windows 8.1 以克服 WCF 限制,...

    SOAP调用webservice例子

    SOAP调用webservice例子,一个用SOAP调用webservice的例子

    SimpleSOAPClient:轻量级的SOAP客户端,用于调用HTTP SOAP端点

    流利地创建SOAP信封,通过SOAP客户端发送它们,并从返回的SOAP信封中提取所需的信息。...安装该库可以通过软件包安装。 只需运行以下命令: Install-Package SimpleSOAPClient兼容性该库与...var client = SoapClient .

    webservice 调用实例soap协议

    webservice 调用实例 解析xml文档。soap协议

    Professional C# 3rd Edition

    是英文的,全面包含了c#的各方面。是非常好的一本书,绝对值得下载。 Introduction xxvii Part I: The C# Language 1 Chapter 1: .NET Architecture 3 The Relationship of C# to .NET 4 The Common Language ...

    PHP中如何调用webservice的实例参考

    phptry { //$client = new SoapClient(“HelloService.wsdl”,array(‘encoding’=&gt;’UTF-8’)); $client = new SoapClient(“http://webservice.webxml.com.cn/webservices/qqOnlineWebService.asmx?wsdl”); ...

    webservice接口调用

    PDAService.ServiceSoapClient PS = new PDAService.ServiceSoapClient(); ``` 然后,可以调用具体的接口,例如: ```csharp String strSourceFile = "wwef.btw"; string DataName = PS.getDataNames...

    soapjava客户端源码-vba_client_demo:vba_client_demo

    vba-client-demo-pure VBA接口客户端示例代码。是框架和构建工具无依赖的纯eclipse工程。jdk版本兼容1.7及以上。 接口文档请见 JavaKey2CSharpKey Java aes加密C#解密的取巧方法 见 的第一种方法 CIAS_SOAPMessage ...

    Magento-RestApi:Magento REST API的异步C#客户端

    Magento.RestApi-异步C#Magento REST API客户端是一个开放源代码电子商务平台,允许外部应用程序通过SOAP API或REST API与之交互。 仅在Magento的1.7版本中可用。 客户端仅使用REST API(=没有SOAP调用)。 该...

    C# WebService创建、发布、调用的实例讲解

    假设A是Client端,B是webservice服务端,用户通过http协议向服务器发送soap请求,webservice返回客户端XML格式的数据。 客户端由代理对象(proxy)负责与webservice的通信。所以在客户端使用webservi

    Spring.net框架

    除此之外,对于单继承的C#语言而言,使用接口可以拥有更大 的弹性。 二、接口依赖 既然类之间的依赖导致耦合过于紧密,按照《设计模式》的理论,我们要依赖于接口。但是人们往往发现,仅仅依赖于接口似乎并不能完全...

    webservice-clients:一组Web服务客户端,用于通过REST和SOAP API使用EBI的工具

    除了Perl,Python和Java外,还可以使用各种不同的REST / SOAP库在C#,Visual Basic .NET,Ruby和PHP中使用客户端。 样本客户 适用于Python,Perl和Java的EBI Job Dispatcher Web服务的REST示例客户端的集合。 这些...

    PHP中调用ASP.NET的WebService的代码

    其中有个web method像这样的: 复制代码 代码如下: ...php //get localization strings from C# webservice $client = new SoapClient(‘http://localhost/webservice1/Localization.asmx?wsdl’); echo “Cal

    致远A8-M平台API参考手册

    1、 可以跳过 SOAP,直接调用 Web service 的 Java 本地接口实现。 2、 可以略过下面几节,直接从服务列表开始阅读,在 Java 项目中包含 seeyon-api.jar 和 v3x-services.jar 即可。 3、 编写的代码必须与 A8 部署...

Global site tag (gtag.js) - Google Analytics