hi all,
I'm using spring 2.5, CXF 2.0-incubator, java-1.6.0_17.
this is my Pojo
public class Debitur {
private int id;
private String name;
private String message;
// getter and setter
}
this is my interface on spring web service
@WebService
public interface OrderProcess {
@WebMethod
Debitur getDebitur(@WebParam(name = "id") int id);
}
My implementation
@WebService(endpointInterface = "demo.order.OrderProcess")
public class OrderProcessImpl implements OrderProcess {
@WebMethod
public Debitur getDebitur(int id) {
System.out.println("[SERVER] id send " + id);
Debitur debitur = new Debitur();
debitur.setId(101);
debitur.setName("Saiful Haqqi");
debitur.setMessage("Id anda ignored");
System.out.println("debitur -> " + debitur);
return debitur;
}
}
I'm already run my service and get wsdl, but the problem when run my client
(java desktop)
I'm always get Debitur [id:0 ; name:null ; message:null ; ]
Is any wrong with my code?
--
View this message in context:
http://old.nabble.com/client-send-null-data-to-web-service-tp26585859p26585859.html
Sent from the cxf-user mailing list archive at Nabble.com.