You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Thamizh <tc...@yahoo.co.in> on 2008/02/18 10:36:59 UTC

Problem for calling web method in client side

Hi All,

I am facing some problem in calling web method from client end.
When I call the below web service method from client end(Dot.net) I am getting empty string as an output. But the same method works fine inside a Java program. 

Server Side : JAVA+AXIS
 client Side : Dot.net client
 
1. What is wrong in this code? 

2. Please let me Is there any IDE available for AXIS? or Is there any way Can I debug my Java web service using any IDE to fix this issue?

Help me to resolve this issue.

public String getQstatDetails() {
String tempQstatOutput = "";
String strQstatOutput = "";
String cmdQstat = "/opt/sge/bin/lx24-amd64/qstat -f -u \"*\" -r -xml";
try {
Process processQstat = Runtime.getRuntime().exec(cmdQstat);
BufferedReader stdInputQstat = new BufferedReader(
new InputStreamReader(processQstat.getInputStream()));

//read the output from the command
while ((strQstatOutput = stdInputQstat.readLine()) != null) {
tempQstatOutput += strQstatOutput;

}
if(tempQstatOutput.equalsIgnoreCase("")){
return "Qstat output is Empty";
}
return tempQstatOutput;
}
catch (Exception e) {
return e.getMessage();
}
}

Regards,
Thamizh
       
---------------------------------
 Why delete messages? Unlimited storage is just a click away.