跨平台服务(通过c#客户端连接java服务)
我有一个Java服务器应用程序,它有两个简单的操作:addTwoInts和multiplyTwoFloats。我正在尝试通过 C# 客户端应用程序实现这些数学服务。我应该能够使用反射来调用客户端从服务器接收的 WSDL 中包含的操作。我对 Java 端比对 C# 端更熟悉 - 假设我的服务器已经正确提供 WSDL,我应该如何从客户端处理这个问题?
I have a server application in Java which has two simple operations, addTwoInts and multiplyTwoFloats. I'm trying to implement these math services through a C# client application. I should be able to use reflection to invoke the operations included in a WSDL that the client receives from the server. I am more familiar with the Java side than with the C# side - how should I approach this from the client side, assuming my server already properly serves a WSDL?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需使用 WSDL 从 C# 项目添加 Web 服务即可。当您创建新的 Web 服务引用时,VS 中会出现一个向导。
编辑
向导中的 url,只需设置您拥有的 WSDL 文件,VS 将直观地向您显示可用的功能并为您创建存根。
Just add a webservice from your C# project using the WSDL. There is a wizard in VS that comes up when you create new webservice reference.
Edit
For the url in the wizard just set the WSDL file you have VS will show you visually what the available functions are and create the stubs for you.