Hi,

As I posted in Trying to get started creating a simple Web Service Client, the default code is slightly messed up. For this Axis Web Service Client, the code is this:

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();
          }
      }
    }
I updated it to this:

Java Code:
    import pakeightball.*;
    public class HelloWorldClient {
      public static void main(String[] argv) {
          try {
              MagicEightBallServiceLocator locator = new MagicEightBallServiceLocator();
              IMagicEightBallService service = locator.getWSHttpBinding_WindowsSecurity_IMagicEightBallService();
              // If authorization is required
              //((WSHttpBinding_WindowsSecurity_IMagicEightBallServiceStub)service).setUsername("user3");
              //((WSHttpBinding_WindowsSecurity_IMagicEightBallServiceStub)service).setPassword("pass3");
              // invoke business method
              System.out.println(service.hmmm());
          } catch (javax.xml.rpc.ServiceException ex) {
              ex.printStackTrace();
          } catch (java.rmi.RemoteException ex) {
              ex.printStackTrace();
          }
      }
    }
When I run the app, I get errors. Here's the complete output:

Java Code:
"C:\Program Files\Java\jdk1.6.0_26\bin\java" -Didea.launcher.port=7533 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 10.5.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.6.0_26\jre\lib\alt-rt.jar;C:\Program Files\Java\jdk1.6.0_26\jre\lib\alt-string.jar;C:\Program Files\Java\jdk1.6.0_26\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_26\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.6.0_26\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.6.0_26\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_26\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_26\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.6.0_26\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.6.0_26\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_26\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_26\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0_26\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.6.0_26\jre\lib\ext\sunjce_provider.jar;C:\Users\Jay.MVP\IdeaProjects\TryClientMagicEightBall3\out\production\TryClientMagicEightBall3;C:\Users\Jay.MVP\IdeaProjects\TryClientMagicEightBall3\lib\axis.jar;C:\Users\Jay.MVP\IdeaProjects\TryClientMagicEightBall3\lib\commons-discovery-0.2.jar;C:\Users\Jay.MVP\IdeaProjects\TryClientMagicEightBall3\lib\commons-logging-1.0.4.jar;C:\Users\Jay.MVP\IdeaProjects\TryClientMagicEightBall3\lib\jaxrpc.jar;C:\Users\Jay.MVP\IdeaProjects\TryClientMagicEightBall3\lib\log4j-1.2.8.jar;C:\Users\Jay.MVP\IdeaProjects\TryClientMagicEightBall3\lib\saaj.jar;C:\Users\Jay.MVP\IdeaProjects\TryClientMagicEightBall3\lib\wsdl4j-1.5.1.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 10.5.1\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain example.HelloWorldClient
log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
AxisFault
 faultCode: {http://www.w3.org/2003/05/soap-envelope}MustUnderstand
 faultSubcode: 
 faultString: Did not understand "MustUnderstand" header(s):{http://www.w3.org/2005/08/addressing}Action
 faultActor: 
 faultNode: 
 faultDetail: 
	{http://xml.apache.org/axis/}stackTrace:
	at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:96)
	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
	at org.apache.axis.client.Call.invoke(Call.java:2767)
	at org.apache.axis.client.Call.invoke(Call.java:2443)
	at org.apache.axis.client.Call.invoke(Call.java:2366)
	at org.apache.axis.client.Call.invoke(Call.java:1812)
	at pakeightball.WSHttpBinding_WindowsSecurity_IMagicEightBallServiceStub.hmmm(WSHttpBinding_WindowsSecurity_IMagicEightBallServiceStub.java:147)
	at example.HelloWorldClient.main(HelloWorldClient.java:18)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

	{http://xml.apache.org/axis/}hostname:DOOR

Did not understand "MustUnderstand" header(s):{http://www.w3.org/2005/08/addressing}Action
	at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:96)
	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
	at org.apache.axis.client.Call.invoke(Call.java:2767)
	at org.apache.axis.client.Call.invoke(Call.java:2443)
	at org.apache.axis.client.Call.invoke(Call.java:2366)
	at org.apache.axis.client.Call.invoke(Call.java:1812)
	at pakeightball.WSHttpBinding_WindowsSecurity_IMagicEightBallServiceStub.hmmm(WSHttpBinding_WindowsSecurity_IMagicEightBallServiceStub.java:147)
	at example.HelloWorldClient.main(HelloWorldClient.java:18)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

Process finished with exit code 0
What does this mean and what might I be doing wrong?

Thanks,
Jay