We would need to see the wsdl generated for the service (which could depend on 
other annotations on the class) as well as the soap message that is being sent 
in.   Usually this is caused by the soap message not mapping to what the wsdl 
says it should.

Dan


On Thu February 19 2009 12:14:25 am Foo Jee Ming wrote:
> Hi everyone,
>
> I'm new to WSDL but I found CXF to be very helpful in that regards. :-)
>
> Would appreciate your advise on the following case where somehow I always
> get nulls for my array/List parameters. My environment is JDK 1.6,
> WindowsXP, CXF 2.1.4.
>
> 1) I have a class called SimServerImpl with a method similar to the
> following:
>
>     public boolean foo (String abc,
>                               String def,
>                               List<String> ghi)
>
> note - I get the same error even if I change List<String> to String[].
>
>
> 2) Next I expose the class in the usual manner:
>         SimServerImpl implementor = new SimServerImpl();
>         String address = "http://localhost:9999/SimServer";;
>         Endpoint e = Endpoint.publish(address, implementor);
>
>
> The problem - I always get a null value in field 'ghi'. Just to double
> check, I changed 'ghi' back to a flat field i.e. just a String and only
> then I get can a non-null. Unfortunately I really need my list/array. :-(
>
> Thanks for your advice!
>
> cheers

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

Reply via email to