cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saiful Haqqi <saifu...@gmail.com>
Subject Re: client send null data to web service
Date Tue, 01 Dec 2009 07:48:05 GMT

hi Dan thank's for replay, I just download new Apache CXF 2.2.5 use all jar
file from library.
But get Error in jaxb-impl.2.1.2 so I'm replay that jar file with
jaxb-impl-2.0.1.jar.

That working now, thank's alot Dan


dkulp wrote:
> 
> 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
> dkulp@apache.org
> http://www.dankulp.com/blog
> 
> 

-- 
View this message in context: http://old.nabble.com/client-send-null-data-to-web-service-tp26585859p26587825.html
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message