views:

41

answers:

2

I can't figure this out, I'm a pretty novis Eclipse user. I'm a .NET/C# Guy by trade, and playing with Java in my spare time.

I have a .NET WCF Service hosted with basicHttpBinding -- I'm successfully calling this service from another .NET application, I've used the Visual Studio SvcUtil to generate the proxy class (via Add Service Reference).

I'm wondering how I can achieve the same result for Java using Eclipse? I've downloaded the latest version of Eclipse, but I can't seem to get it working.

+1  A: 

Look under File -> New -> Other. In the dialog, select Web Service Client.

If you don't see this option, you're probably missing the Web Tools Platform plugin.

There's a tutorial here, that steps you through the process (though on an older version of eclipse).

Nader Shirazie
A: 

If you take a look at Head First's Design Patterns there is a nice example of the proxy pattern with a tutorial on how to get it working. All the code is in Java and you get to learn about other types of proxy patterns too.

cschar