• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

xmlns:soap Namespace and encodingStyle attribute

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
In "http://www.w3schools.com/soap/soap_envelope.asp" website they says
"Notice the xmlns:soap namespace in the example above. It should always have the value of: "http://www.w3.org/2001/12/soap-envelope"."

and In J2ee web service( Richerd Monson - Haefel) book they used xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"

Which one I should use ? What is the difference in those ?

In J2ee web services( Richerd Monson - Haefel) book they used encoding as
<?xml version="1.0" encoding= "UTF-8"?>

and in "http://www.w3schools.com/soap/soap_envelope.asp" website they used
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding"/

In that website they said soap don't have any default encoding then why web services( Richerd Monson - Haefel) book didn't include soap:encodingStyle?

Thanks
Layla


 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
For soap 1.1 namespace is http://schemas.xmlsoap.org/soap/envelope.
For soap 1.2 namespace is http://www.w3.org/2003/05/soap-envelope

Looks like namespace http://www.w3.org/2001/12/soap-envelope was earlier version for soap 1.2. Base on this link http://www.w3.org/TR/2001/WD-soap12-part1-20011217/ recommendation was in 2001. Namespace http://www.w3.org/2003/05/soap-envelope had recommendation in 2003 ( http://www.w3.org/TR/2003/REC-soap12-part1-20030624/ ).
Regards,
 
Layla Rashid
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks
and I think encodingStyle attribute only used by soap 1.2 version .
am I right ?
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
The WS-I BasicProfile 1.1 does not allow the use of the encodingStyle attribute:
http://www.ws-i.org/Profiles/BasicProfile-1.1.html#SOAP_encodingStyle_Attribute
By the way, the encodingStyle attribute does appear in the SOAP 1.1 specification as well:
http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383495
Best wishes!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic