Java Web Service Client to WCF Web Service Server. Interoperability Solution

。_饼干妹妹 提交于 2019-12-23 05:49:12

问题


Has anyone found a way for a WCF Service to be queried by a Java Client? What .NET library did you use and what Java library did you use. Please be specific with specific platforms and library versions. Also, I've found that if the libraries don't use compatible SOAP version specifications that the libraries aren't compatible either. If you know which SOAP version specification, please provide that as well. -Thanks


回答1:


What problems you for-see if you go ahead with calling your WCF service with Java Client?

The whole point to use standard SOAP based webservices is to have benefits of Interoperability.

WCF (by Microsoft) is standard technology and I understand it implements and follows the standards of WS-I consortium by using the standard SOAP and WSDL specs to support interoperability.

And same is applicable for JAVA and is defined in its JAX-WS specs. Standard tools like axis/cxf/xjc etc is there to help you at java side to use WSDL to generate proxies and call a SOAP based service (developed in any language as long as it follows the SOAP bindings, WSDL specifications etc.)




回答2:


You need to use the Java Metro Library version 2.1, http://metro.java.net/2.1/. Follow the instructions at http://webservices20.blogspot.co.il/2011/06/test-drive-shiny-new-wcf-interop.html.




回答3:


I have had success with WCF svc and BasicHttpBinding. BasicHttpBinding should give you the most interop success and uses SOAP 1.1. We have used .NET 3 and up with Java, PHP and uniface clients.



来源:https://stackoverflow.com/questions/22332829/java-web-service-client-to-wcf-web-service-server-interoperability-solution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!