Win a copy of Getting started with Java on the Raspberry Pi this week in the Raspberry Pi forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Liutauras Vilda
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Piet Souris

Re SOAP Envelope basic profile

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey folks,

I am just starting to study for OCPJWSD, here in the basic profile i just found some do's and dont's. Can anyone explain why it is so?

An ENVELOPE MUST NOT contain a Document Type Declaration. why?

An ENVELOPE MUST NOT contain Processing Instructions. why?

An ENVELOPE SHOULD NOT contain the namespace declaration xmlns:xml="http://www.w3.org/XML/1998/namespace". why?

A DESCRIPTION SHOULD NOT contain the namespace declaration xmlns:xml="http://www.w3.org/XML/1998/namespace". why?

, Please don't mind if it's a silly question, i would like to know the reason for it instead of simply memorizing.

Thanks,
Sakthi
 
Saloon Keeper
Posts: 3848
42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

You listed some requirements from basic profile. But actually all of them have a short explanation prepended.

In particular, answer for the first two your questions is:


XML DTDs and PIs may introduce security vulnerabilities, processing overhead and semantic ambiguity when used in envelopes.



Best regards,
MZ
 
Anderson gave himself the promotion. So I gave myself this tiny ad:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic