Java Web Service Client to WCF Web Service Server.

2019-06-14 10:38发布

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

3条回答
甜甜的少女心
2楼-- · 2019-06-14 11:27

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.)

查看更多
地球回转人心会变
3楼-- · 2019-06-14 11:31

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.

查看更多
看我几分像从前
4楼-- · 2019-06-14 11:32

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.

查看更多
登录 后发表回答