views:

194

answers:

1

i have a java method that is part of an web service interface and that takes a byte array parameter like this

public int computeSomeThind(byte[] data) {
  if(data != null) {
    // ... do what ever
  } else {
    return -1;
  }
}

When a generate the wsdl with axis 1.3 the data parameter will appear as not nullable. Is there a way to define this as nullable?

A: 

Is null really different that a byte[] of 0 length in this case?

ikelly