Sathish
Sathish

Reputation: 1521

Consume WCF .svc WebService in Java

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

Answers (2)

oleksii
oleksii

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

Oscar Gomez
Oscar Gomez

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:

wsdl2java eclipse plugin

Upvotes: 2

Related Questions