Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

The facets of the simpleTypes in a wsdl  RSS feed

 
C Shinde
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have read about the restriction simple types in a wsdl as the example below:



My query was how can I validate the input string the user is passing in fits this pattern, Do I need to validate it in my Service implementation using normal Java logic or is there any particular way to get this validation done.
If I have to validate it then whats the use of identifying this pattern in the wsdl, is it just to inform the user about the format of the input that I am expecting?

Please forgive me if I have missed something basic, but thats what I want to know, as I searched the net and did not find anythink, I was not sure what to search for as I tried some text in Google search but it did not help.

I am preparing for my SCJWSD exam so was preparing. I dont know about a book which cover all the objectives, I have read a couple of posts on the WS certification posts on this site and looks like tehere is no good book for WS 5.0 exam.

I am referring to Ivan A Krizsan notes that he has created and they look good. Though I am not sure why there is no good book for WS that can be used for reading, I am planning to read the Richard Monson-Haefel book which is an old book but it will give some insight into the specs, as WS is full of specs that is difficult to understand! .

Thanks in advance,
Chetan Shinde
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
C Shinde wrote:query was how can I validate the input string the user is passing in fits this pattern, Do I need to validate it in my Service implementation using normal Java logic or is there any particular way to get this validation done.

It is possible to validate data against the corresponding XML schema when marshalling or unmarshalling - these subjects are described in my notes.

If I have to validate it then whats the use of identifying this pattern in the wsdl, is it just to inform the user about the format of the input that I am expecting?

You do not HAVE to validate the data, it is optional. A WSDL is a description of a web service - compare it to a method signature. If you do not know what kind of parameters to pass to the method, then you will have a hard time invoking the method.

I am planning to read the Richard Monson-Haefel book which is an old book but it will give some insight into the specs, as WS is full of specs that is difficult to understand! .

Yes, indeed, this it what makes web services interesting and fun - there is so much to learn!
The book by RMH is a very good starting point of you have little, or no, experience with web services.
Best wishes!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!