• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web-resource-collection element

 
ravi janap
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Please confirm the answer to this question from "Eduardo Cobian".
What are the mandatory elements of the web-resource-collection element?
1) web-resource-name
2) url-pattern
3) http-method
4) auth-constrait
The correct answers mentioned are: 1 and 2.
According to me http-method is also a mandatory element. Here is definition of web-resource-collection element:
<!ELEMENT web-resource-collection (web-resource-name, description?, url-pattern*, http-method*)
Thanks
-- Ravi
 
Anselm Paulinus
Ranch Hand
Posts: 390
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the definition <!ELEMENT web-resource-collection (web-resource-name, description?, url-pattern*, http-method*)
the only mandatory element is web-resource-name.
anselm
 
Denny Permana
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Regarding to SCWCD Kit Appendix B (XML), the * sign means the element can occur zero or more number of times. So, according this, the http-method element is not mandatory.
 
Benny Tang
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
As stated in the previous reply, the http-method is not mandatory. If you do not specify the HTTP method within the web-resource-collection, then the security constraints are applied for all the methods such as GET, POST, PUT ....etc.
Benny T
 
ravi janap
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
If we strictly go by the definition for web-resource-collection element:
<!ELEMENT web-resource-collection (web-resource-name, description?, url-pattern*, http-method*)
Then answer # 2 i.e. url-pattern must not be mandatory too so the only correct answer should be 1.
-- Ravi
 
Anselm Paulinus
Ranch Hand
Posts: 390
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's right; the only mandatory answer is 1.
 
ravi janap
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Anselm
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic