Skip to main content

AVOIDING COMPLEX TYPE IN WSDL

No replies
vitaliyse
Offline
Joined: 2011-02-22
Points: 0

Hi,
I'm using wsget to generate a code for service.
my service has only 1 parameter,
@WebMethod(operationName="echoText") //in wdsl it will be echoText instead of sayHello
public String echoString(@WebParam(name="text") String name) {
return name;
}

wsgen generates code that generates wsdl with complex type.
<xs:element name="echoText" type="tns:echoText"/>
<xs:complexType name="echoText">
<xs:sequence>
<xs:element name="text" type="xs:string" minOccurs="0"/>
</xs:sequence>
Is there any way to control generated wsdl and do not let jax ws to generate complexType for 1 String arugment?

Thanks in Advance,
Vitaliy S