Hi Sam Gehouse
Other than Web Client (JSP) created by the RAD we can write the normal Standalone
java class (main method) or we can write the
EJB client
fine the example client below.
package com.ibm.Client;
import org.apache.axis.client.Service;
import org.apache.axis.client.Call;
import org.apache.axis.encoding.XMLType;
import javax.xml.rpc.ParameterMode;
import javax.xml.namespace.QName;
public class Client {
// Creates new HelloWorldClient
public Client() {
}
public static void main (
String args[]) {
try {
// EndPoint URL for the SparePartPrice web service.
String endpointURL =
"http://localhost:9080/JaxRPCExamples/services/HelloWorld";
// Method Name to invoke for the SparePartPrice web service
String methodName = "getMessage";
// Create the Service call
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(new java.net.URL(endpointURL));
call.setOperationName(new QName("getMessage",methodName));
call.addParameter("name",XMLType.XSD_STRING, ParameterMode.IN);
call.setReturnType(XMLType.XSD_STRING);
Object[] params = new Object[] {"INDIA"};
//Invoke the SparePartPrice web service
String response= (String) call.invoke(params);
//Print out the result
System.out.println("Message is "+response);
}
catch (Exception e) {
System.out.println(e.toString());
}
}
}