I'm fairly new to Java and have to write an interface program to get some data from an application server. The environment is Solaris.
I used WebLogic and the ANT command to create a JAR file with the details of the application server. That side of things seemed to work correctly and when I list the jar file I see:
I'm now trying to write a program to use the services in the Jar file and I have:
I've added the DQSClient.jar to the $CLASSPATH variable and I try to compile, but it doesn't seem to recognise any of the classes defined in the JAR file. I get errors along the lines of:
Client.java:8: cannot resolve symbol
symbol : class DQService_Impl
location: class Client
implementation = new DQService_Impl( "http://jets-sng-uat.app.xxxx.ne t/DQS/DQService?WSDL" );
Does anyone know what I'm missing here ?
I used WebLogic and the ANT command to create a JAR file with the details of the application server. That side of things seemed to work correctly and when I list the jar file I see:
Code:
jar -tf DQSClient.jar META-INF/MANIFEST.MF dqsws/DQService.class dqsws/DQService_Impl.class dqsws/DQServicePort_Stub.class dqsws/DQServicePort.class dqsws/DQService.xml dqsws/DQService.wsdl
Code:
public class Client
{
public static void main (String a[])
{
DQService_Impl implementation=null;
try
{
implementation = new DQService_Impl("http://jets-sng-uat.app.xxxx.net/DQS/DQService?WSDL");
} catch (IOException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
DQServicePort service = implementation.getDQServicePort();
String output = service.getDataDictionary(arg0, arg1, arg2, arg3, arg4, arg5);
}
}
Client.java:8: cannot resolve symbol
symbol : class DQService_Impl
location: class Client
implementation = new DQService_Impl( "http://jets-sng-uat.app.xxxx.ne t/DQS/DQService?WSDL" );
Does anyone know what I'm missing here ?
Comment