Hi,

I have a WCF Web Service running with its WSDL located at http://localhost/MagicEightBall/Magi...rvice.svc?wsdl.

I downloaded IntelliJ IDEA and would like to use it to create a web client to consume the WCF service. I created a new Java project, checked the WebServices Client option (using Glassfish / JAXWS-2.X RI / Metro 1.X / JWSDP 2.0), and linked it to the WSDL file.

The project that's generated has a main class with the following code:

Java Code:
    public class HelloWorldClient {
      public static void main(String[] argv) {
          pakeightball.IMagicEightBallService service = new MagicEightBallService().();
          //invoke business method
          service.getAdvice();  
      }
    }
Notice the syntax error:

Java Code:
    new MagicEightBallservice().();
When I try creating a web service project that uses Axis (instead of Glassfish, etc.), I get a similar issue:

Java Code:
    public class HelloWorldClient {
      public static void main(String[] argv) {
          try {
              MagicEightBallServiceLocator locator = new MagicEightBallServiceLocator();
              IMagicEightBallService service = locator.();
              // If authorization is required
              //((WSHttpBinding_WindowsSecurity_IMagicEightBallServiceStub)service).setUsername("user3");
              //((WSHttpBinding_WindowsSecurity_IMagicEightBallServiceStub)service).setPassword("pass3");
              // invoke business method
              service.();
          } catch (javax.xml.rpc.ServiceException ex) {
              ex.printStackTrace();
          } catch (java.rmi.RemoteException ex) {
              ex.printStackTrace();
          }
      }
    }
Also, the package containing the web service are not imported by default. Do these issues show a sign that I'm doing something wrong, or is this normal behavior?