首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从.NET表单使用TIBCO BusinessWorks Web服务

从.NET表单使用TIBCO BusinessWorks Web服务
EN

Stack Overflow用户
提问于 2011-03-27 14:19:32
回答 1查看 2.1K关注 0票数 0

我有一个作为web服务公开的BW流程,并希望使用C# .NET表单来使用它。但是,我的应用程序一直显示异常: body元素没有处理程序,加上下面的堆栈跟踪(见下文)。我已经在测试模式下运行了BW进程来检查进程状态,发现请求从未到达BW。我还使用soapUI测试了相同的流程,它完美地触发了web服务请求。有什么建议吗?

我的代码如下:

代码语言:javascript
复制
        ServiceReference1.PortTypeClient client = new ServiceReference1.PortTypeClient();
        ServiceReference1.new_incident_report report = new ServiceReference1.new_incident_report();

        report.contact_details = new ServiceReference1.contact_details();
        report.contact_details.name = "John Doe";
        report.contact_details.contactno = "1234567890";
        report.incident_details = new ServiceReference1.incident_details();
        report.incident_details.date = new DateTime();
        report.incident_details.time = new DateTime();
        report.incident_details.location = "80 Dutch Road";
        report.operator_comments = new ServiceReference1.operator_comments();
        report.operator_comments.operator_name = "Bob";
        report.operator_comments.operator_summary = "Something";

        MessageBox.Show(client.processOperation(report));

服务器堆栈跟踪:在System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime操作时,代理rpc和rpc)在System.ServiceModel.Channels.ServiceChannel.Call(String操作,布尔单向,ProxyOperationRuntime操作,Object[] in,Object[] out,TimeSpan超时)在System.ServiceModel.Channels.ServiceChannel.Call(String操作,布尔单向,Object[]操作,Object[] in,TimeSpan out)在ProxyOperationRuntime消息)在System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall,ProxyOperationRuntime操作)

异常重新抛出: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,在MyWebServiceConsumer.ServiceReference1.PortType.processOperation(processOperationRequest请求时的文档类型)在c:\users\ystan.2009\documents\visual studio ServiceReference1\ 2010\Projects\MyWebServiceConsumer\MyWebServiceConsumer\Service References\ServiceReference1\Reference.cs:line中的c:\users\ystan.2009\documents\visual studio ServiceReference1\Reference中)。cs: MyWebServiceConsumer.Form1.button1_Click(Object发送方的第333行,EventArgs e)位于c:\users\ystan.2009\documents\visual studio 2010\Projects\MyWebServiceConsumer\MyWebServiceConsumer\Form1.cs:line 44

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-04-09 10:23:33

对于任何还在关注这一点的人来说,解决方案似乎涉及手工制作SOAP数据包,该数据包将被正确地分派到BW。由于某些原因,.NET网络参考实用程序和BW似乎不兼容。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5447588

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档