Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Annotation for regular expression.

 
Minhaj Mehmood
Ranch Hand
Posts: 400
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any annotation to put regex pattern into auto generated WSDL such as following schema?
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I don't recall having seen such an annotation.
If you want to try it yourself, then run a WSDL with such a type through the JAXB XML schema compiler (XJC) and look at the generated Java classes.
Best wishes!
 
Minhaj Mehmood
Ranch Hand
Posts: 400
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ivan Krizsan wrote:Hi!
I don't recall having seen such an annotation.
If you want to try it yourself, then run a WSDL with such a type through the JAXB XML schema compiler (XJC) and look at the generated Java classes.
Best wishes!


Damn!!! why this idea did not came in my mind!!!
You're the best IK

Well Nevertheless, i tried a mimic program and created a web service using top-down approach and found java web services don't have such option/feature/annotation.


Thanks

Minhaj
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic