Java 的 WCF 通讯员是什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14991141/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-31 18:07:31  来源:igfitidea点击:

What is the WCF correspondent for Java?

java.netwcf

提问by RollRoll

Is there a unique service centralizer like WCF for Java where I can create and host services for different media?

是否有像 WCF for Java 这样的独特的服务集中器,我可以在其中为不同的媒体创建和托管服务?



Change: It seems it has a different concept in the java world, is it called application server?

改:在java世界好像有个不同的概念,叫应用服务器?

回答by flup

JAX-WS / Metro

JAX-WS / 地铁

  • allows you to annotate your web service class and methods and generates a WSDL from those annotations, just like WCF.
  • allows you to generate a service wsdl-first, just like WCF
  • allows you to generate a web service client, just like WCF
  • allows you to host your web service in any Java EE container. This is comparable to WCF's IIS hosting.
  • allows you to host your web services using the Endpointapi. This is comparable to WCFs self-hosting.
  • allows you to choose between SOAP or Fast InfoSetover HTTP or TCP protocols, like the WCF transport options. (Though I don't think it allows named pipes...)
  • 允许您注释 Web 服务类和方法,并从这些注释生成 WSDL,就像 WCF 一样。
  • 允许你生成一个服务 wsdl-first,就像 WCF
  • 允许您生成 Web 服务客户端,就像 WCF 一样
  • 允许您在任何 Java EE 容器中托管您的 Web 服务。这与 WCF 的 IIS 托管相当。
  • 允许您使用Endpointapi托管您的 Web 服务。这与 WCF 自托管相当。
  • 允许您选择SOAP 或 Fast InfoSetover HTTP 或 TCP 协议,如WCF 传输选项。(虽然我认为它不允许命名管道......)

So in many ways it corresponds to WCF. It is more focussed on Web Services than WCF is, though. Like the names say.

所以在很多方面它对应于WCF。不过,与 WCF 相比,它更侧重于 Web 服务。就像名字所说的那样。

回答by Vinnie

I have found some blog, it is pretty old, but it explained very well about java jax-ws and .net-wcf.

我找到了一些博客,它很老了,但它很好地解释了java jax-ws 和 .net-wcf。

Hope thishelps..!

希望这有帮助..!

回答by Jstone05

The options I've found are

我发现的选项是

Netty http://netty.io/

Netty http://netty.io/

Apache MINA http://mina.apache.org/

Apache MINA http://mina.apache.org/

回答by Suresh Atta

It seems you want to host your applicationlocally ...For that there are several application server's like Jboss,Glassfish,Tomcat,IBM Web sphere...

看来您想在application本地托管...为此有几个 应用程序服务器,例如Jboss,Glassfish,Tomcat,IBM Web sphere...

回答by kodeslacker

Yes, and it's pretty simple to use it's called java webservices, and it uses wsdl files like WCF and everything. refer to this: http://www.mkyong.com/webservices/jax-ws/jax-ws-hello-world-example/

是的,使用起来非常简单,它被称为 java webservices,它使用 wsdl 文件,如 WCF 和所有内容。参考这个:http: //www.mkyong.com/webservices/jax-ws/jax-ws-hello-world-example/