web-servicessoapjax-ws

how to change the attributes in a wsdl using jax-ws specific soap webservices


I was reading about web services , and was creating wsdl from jax-ws source code, i was able to create the wsdl perfectly , i have a many inputs in a request where i need to set minOccurs and maxOccurs for a specific string input in a request, how can i do this via java code. help me in this

my wsdl piece code

<xs:element name="person"><xs:complexType><xs:sequence>
  <xs:element name="employee" type="xs:string" minOccurs="1" maxOccurs="10"/>
  <xs:element name="member" type="xs:string"/> </xs:sequence></xs:complexType></xs:element>

Solution

  • You cannot define such limit by jaxb anotations on your classes. You can have 1, or unbound only as maxoccurency