File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Annotation for regular expression. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Annotation for regular expression." Watch "Annotation for regular expression." New topic
Author

Annotation for regular expression.

Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

Is there any annotation to put regex pattern into auto generated WSDL such as following schema?


SCJP6 96% | SCWCD5 81% | SCDJWS5 79%
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
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!


My free books and tutorials: http://www.slideshare.net/krizsan
Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

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
 
Consider Paul's rocket mass heater.
 
subject: Annotation for regular expression.