S Chandani

Greenhorn
+ Follow
since Oct 04, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by S Chandani

Try this code instead:

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
public class AxisClient3 {

public static void main(String[] args) {
try {
String endpoint = "http://localhost:8080/axis/HelloServer.jws";
Service service = new Service();
Call call = (Call) service.createCall();

call.setTargetEndpointAddress(new java.net.URL(endpoint));
call.setOperationName(new QName("http://soapinterop.org/", "sayHelloTo"));
String ret = (String) call.invoke(new Object[] { "schandani" });

System.out.println("Sent 'schandani', got '" + ret + "'");
} catch (Exception e) {
System.err.println(e.toString());
}
}
}
12 years ago