Meaningless Drivel is fun!*
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
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
Author

xmlns:soap Namespace and encodingStyle attribute

Layla Rashid
Ranch Hand

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


Czeslaw Szczotka
Greenhorn

Joined: May 16, 2010
Posts: 8
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

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


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