问题
How can I add WCF Service Reference to my Java Console Application ? I want to use this method for prove the interoperability of my wcf Service.
I'm newbiee to java and I don't know what do I import to java.I have service and service.wsdl but I haven't found anywhere what will I type to import my Service reference in java ?
回答1:
Make your WCF service able to return a wsdl and consume that on the Java application side.
回答2:
The whole point about web services is that they are interoperable - how do you think any application communicates with a web service? Answer: your service provides a WDSL document (Web Services Description Language) and your Java console app communicates with it, according to the WDSL, via SOAP messaging.
回答3:
Take a look at wscompile - if you have your mex endpoint enabled, wscompile should be able to generate stubs for you based on the wsdl
来源:https://stackoverflow.com/questions/1869366/adding-wcf-service-reference-to-java-application