Invoking .Net webservices from Java
I have a web service created in .Net and I am interested in invoking this web service in my jav开发者_运维百科a application.
What set of libraries would be the best suited to do this? I've looked into GlassFish, but have been unable to find anything examples of this being used to invoke a .Net web service, only creating the Java side web service.
I have some experience using wsif, but it appears to be rather outdated and would like to use something more current if possible.
Check out those links:
Your question
WebServices in java, this tutorial uses JAX-WS 2.0
A simpler approach to what you want
The standard Web services stack in Java is JAX-WS, which is the one included in Glassfish, and it can be downloaded from http://jax-ws.java.net/. There are other JAX-WS compliant implementations out there, but not necessarily using JAXB (the one used by JAX-WS).
Use the JAX-WS wsimport utility to generate the Java client side from a WSDL.
精彩评论