> > > > My service only has one function, getCounts() (which returns > > the XML doc at the bottom). > > > > Here are my client (and stub files): > > * > > @author Tom Sturgeon > > */ > > > > package client; > > > > import stubs.*; > > > > > > public class ClientService1Stub { > > > > /** > > * main method is what is called first. > > */ > > public static void main(String[] args) throws Exception { > > Service1Locator serviceLocator = new Service1Locator(); > > Service1SoapStub stub = > > (Service1SoapStub)serviceLocator.getPort(); > > > > String temp = stub.getCounts(); > > > > > > } > > } > >
Try changing the line Service1SoapStub stub = (Service1SoapStub)serviceLocator.getPort(); to Service1SoapStub stub = (Service1SoapStub)serviceLocator.getService1Soap(); Hope that helps, Ken