• Post Reply Bookmark Topic Watch Topic
  • New Topic

how can I set a value in java class generated in wsdl with maxoccurs=unbounded?

 
Winston Liek
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, I have a wsdl file and already generated a java class in it. However I can't find a setter method in it.
I tried invoking the getter method but it returns a null

How can I set a value in that property?
 
g tsuji
Ranch Hand
Posts: 697
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you look at the generated source, usually you would find a multi-line comment explaining why the setter is not needed, and again usually it would say something like that the getter returns a reference "live" so that you can manipulate with it and the change would be reflected directly in the object. But you said also that the getter returns with a null - that is not normal. It could be empty, but null ? that is not normal. You can always look at the getter see how it is coded in the generated code. How does it look?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!