Reputation: 1521
I am new to WebServices. I have created a .NET WebService (WCF service .svc).
I am able to consume this service from a .NET Client application. Here I have added the service via (Add Service Reference) in the .NET Client.
Now I want to consume the .NET service from a Java desktop application.
Upvotes: 2
Views: 6641
Reputation: 35905
If this code will work in production, you may also consider REST WCF, which will work with any language that is able to make HTTP request.
Upvotes: 0
Reputation: 18488
You can use wsdl2java and pass it the wsdl file and it will automatically generate the whole client so you can communicate with the WebService.
If you are using eclipse you can use this plugin:
Upvotes: 2