質問

BWプロセスはWebサービスとして公開されており、C#.NETフォームを使用して消費したいと思います。ただし、My Applicationは例外を表示し続けます.BODY要素のハンドラ、および次のスタックトレース(以下の方法)を入力し続けます。テストモードでBWプロセスを実行してプロセスの状態を確認し、要求がBWに到達しなかったことを発見しました。また、Webサービス要求を完全にトリガーしたSOAPUIを使用して同じプロセスをテストしました。任意の提案?

マイコードは次のとおりです。

        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操作、ProxyRPC&RPC) System.ServiceModel.Channels.ServiceChannel.Call(String Action、Boolean Oneway、ProxyOperationRuntime操作、オブジェクト[] INS、オブジェクト[] OUTS)、Timespan Timeout) System.ServiceModel.Channels.ServiceChannel.call(String Action、Boolean OneWay、ProxyOperationRuntime操作、オブジェクト[] INS、オブジェクト[] OUT) System.ServiceModel.Channels.ServiceChannelProxy.Invokeservice(ImethodCallMessage MethodCall、ProxyOperationRuntime操作) System.ServiceModel.Channels.ServiceChannelProxy.Invoke(iMessageメッセージ)

例外は[0]で再トレーニングします。 System.Runtime.Remoting.Proxies.realProxy.HandlerEturnMessage(iMessage reqmsg、iMessage RETMSG) system.runtime.remoting.proxies.realproxy.privateInvoke(MessageData&MSGData、INT32型) MyWebServiceConsumer.ServeReference1.PortType.ProcessOperation(ProcessOperationRequestリクエスト) MyWebServiceConsumer.ServiceReference1.porttypeClient.MyWebServiceConsumer.ServiceReference1.PortType.processOperation(ProcessOperationRequest要求)C:\ users \ ystan.2009 \ Documents \ MyWebServiceConsumer \ MyWebServiceConsumer \ Service References \ ServiceReference1 \ reference.cs:line 327 MyWebServiceConsumer.ServiceReference1.porttypeclient.processoperation(new_incient_report new_incident_report)内のC:\ users \ ystan.2009 \ Documents \ MyWebServiceConsumer \ MyWebServiceConsumer \ Service References \ ServiceReference1 \ reference.cs:行333 MyWebServiceConsumer.form1.button1_click(オブジェクト送信者、eventargs e)で、C:\ users \ ystan.2009 \ Documents \ MyWebServiceConsumer \ MyWebServiceConsumer \ form1.cs:行44

役に立ちましたか?

解決

まだ見ている人のために、ソリューションはSOAPパケットを手動で作成しているように見えます。これはBWに渡されます。.NET Web参照ユーティリティとBWは何らかの理由で互換性がないようです。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top