1

I am running a local webservice application with my wsdl and java. I have provided a tag "maxOccurs='2'" to the element in xsd file. When I run wsdl file, I want to fetch the value of tag 'maxOccurs' in java file and use this value to evalute my java operations.

Can somebody please explain how can I fetch the value of 'maxOccurs' from xsd into Java code?

  • MaxOccur attribute will not be visible on your java pojo. The attribute will be visible as list , and then you can check the size of the list. – Ashish Shetkar Apr 02 '19 at 12:15
  • this might help you https://stackoverflow.com/questions/21929157/how-to-get-the-minoccurs-maxoccurs-values-from-the-xsd-in-java-using-jaxb – Ashish Shetkar Apr 03 '19 at 12:42

0 Answers0