I have created one Java Software in that I want to call .net webservice.
How to make it possible ?
I see some examples but I don't find any perfect solution.
I have created one Java Software in that I want to call .net webservice.
How to make it possible ?
I see some examples but I don't find any perfect solution.
Web services are universal operating system and language independent. It doesn't matter where the services is or in what language it is written,you just invoke it and it gives you "replay".Probably you must refer to java consuming web services.
Here are two references ;-
1.From MSDN Java/.NET Interoperability with the Microsoft.com Web Service
2.Integrating .NET Web Services with Java and classic ASP Clients for Interoperability
It's pretty simple as long as you don't get into any strange jaxws/WCF interop issues.
Get hold of the WSDL from the WCF service. (i.e. http://example.org/service.svc?WSDL usually gets you the WSDL).
Generate Web service client from WSDL. You can use wsimport from JDK to do this, there are other options as well, CXF wsdl2java. Plenty of SO threads cover this already: Java Webservice Client (Best way)
Use the java client from plain code to call your .NET service.
There are lots of ways you can do this, depending on what kind of .Net Webservice, you have (WCF / SOAP / RESTful JSON / XML-RPC / etc.), likewise how you interact with it from Java may be as easy as HttpClient + Gson/Castor, or as less simple as setting up WSIT.