axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Kolb <O_K...@web.de>
Subject Return object is null calling web service!
Date Thu, 30 Aug 2007 09:38:56 GMT
Hi,

i'm using Axis 1.4 and have a problem calling a web service method. This web service
has various methods, i tried a lot and all are working fine. But when i call the getTask()
method of this web services my result object is null. I used WSDL2Java to generate my
stub objects. 

So i used TCPMonitor to tunnel the passed data. All the details of the result answer 
are sent back to my java application, but the object is still null.

Here is my Java Code:

public static void getTaskTest() {

String urn = "urn:ae:task:678";
TTaskRef taskRef = new TTaskRef(urn);
Boolean flag = true;
String user = "loanrep1";
GetTask gTask = new GetTask(taskRef, user, flag);
GetTaskResponse getTaskResponse;

try {
String endpoint = "http://127.0.0.1:8081/active-bpel/services/AeTaskService";
URL myURL = new URL(endpoint);
AeTaskService aService = new AeTaskServiceLocator();
IAeTaskService iAe = aService.getAeTaskServicePort(myURL);
getTaskResponse = iAe.getTask(gTask);

}
catch (Exception e) {
System.out.println("Fault getting Human Task: " + e.getMessage());
}
}

Perhaps anybody has an idea, to solve/isolate the problem.

Best regards,

Oliver
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message