File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xmlns:soap Namespace and encodingStyle attribute

 
Layla Rashid
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • 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


 
Czeslaw Szczotka
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
and I think encodingStyle attribute only used by soap 1.2 version .
am I right ?
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • 0
  • Mark post as helpful
  • send pies
  • 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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic