On Mon November 30 2009 10:11:43 pm Saiful Haqqi wrote:
> hi all,
> 
> I'm using spring 2.5, CXF 2.0-incubator, java-1.6.0_17.

I'm surprised this combination works AT ALL.   2.0-incubator is ancient and 
has known compatibility issues with spring 2.5 and java 6.   I strongly 
suggest upgrading to 2.2.

Dan



> 
> 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?
> 

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to