You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Pierre Feillet <pf...@ilog.fr> on 2002/08/01 17:15:37 UTC

How to set a complex type element nillable or not in Axis 1.0 beta3 ?

Hi,

I look for a way to tune the wsdl generation from Java with the java2wsdl
tool.

By example if we have a Java class as:
public class Borrower {
	public void setName(...
	public String getName(...
...
} used as parameter type in a public method mapped into a web service
operation then the java2wsdl tool
generates a wsdl containing:
- <complexType name="Borrower">
- <sequence>
  <element name="name" nillable="true" type="xsd:string" />
  <element name="SSN" type="xsd:int" />
  </sequence>
  </complexType>

The element name is generated nillable. How to do to tune the generation and
make this element not nillable ?

Thanks for your answer.

Pierre