wood burning stoves 2.0*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes xmlns:soap Namespace and encodingStyle attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "xmlns:soap Namespace and encodingStyle attribute" Watch "xmlns:soap Namespace and encodingStyle attribute" New topic

xmlns:soap Namespace and encodingStyle attribute

Layla Rashid
Ranch Hand

Joined: Dec 25, 2006
Posts: 36
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

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?


Czeslaw Szczotka

Joined: May 16, 2010
Posts: 8
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/ ).
Layla Rashid
Ranch Hand

Joined: Dec 25, 2006
Posts: 36
and I think encodingStyle attribute only used by soap 1.2 version .
am I right ?
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
The WS-I BasicProfile 1.1 does not allow the use of the encodingStyle attribute:
By the way, the encodingStyle attribute does appear in the SOAP 1.1 specification as well:
Best wishes!

My free books and tutorials: http://www.slideshare.net/krizsan
subject: xmlns:soap Namespace and encodingStyle attribute
Similar Threads
Help with SAAJ and SOAP 1.2
web service client's frameworks handling of empty responces from web service
SOAP Namespaces
<Soap:Body> vs <SOAP-ENV:Body> Parser Error
SOA - Basics