I have deployed a Service via a deploy.xml file. I have written a
command-line client to access the WS. if i set the endpoint to point at the
.jws file the service works fine. however i do not want to point at the .jws
file, I want to instead point at the java Class that I deployed with the
deploy.wsdd file. what should the endpoint be?
Here's my client code:
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;
import org.apache.axis.utils.Options;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.namespace.QName;
public class Client
{
public static void main(String [] args)
{
try {
Options options = new Options(args);
*********What should this be????************
String endpointURL =
"http://localhost:8080/axis/queuejob/QueueJobRetriever";
//options.getURL();
String textToSend;
args = options.getRemainingArgs();
if ((args == null) || (args.length < 1)) {
textToSend = "<nothing>";
} else {
textToSend = args[0];
}
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpointURL) );
call.setOperationName( new QName("QueueJobRetriever", "getJobs")
);
call.addParameter( "arg1", XMLType.XSD_STRING, ParameterMode.IN);
call.setReturnType( org.apache.axis.encoding.XMLType.XSD_STRING );
String ret = (String) call.invoke( new Object[] { textToSend } );
System.out.println("You typed : " + ret);
} catch (Exception e) {
System.err.println(e.toString());
}
}
}
--
Eric Roberts
Web Service Developer for Grid Technologies
Texas Advanced Computing Center
[EMAIL PROTECTED]