Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » WSDL Editor question
WSDL Editor question [message #169928] Tue, 23 May 2006 19:32 Go to next message
Nellie Chau is currently offline Nellie Chau
Messages: 1
Registered: July 2009
Junior Member
Just a quick q (I am new to WSDL). When I create a new WSDL doc, why are
all elements within the WSDL prefixed with wsdl: ?
I am reading some docs on WSDL 2.0, and they state that if there is a
desecription element defined with the wsdl 2.0 namespace defined, there is
no need to prefix all the elements.

Thanx for the clarification ahead of time.
Re: WSDL Editor question [message #170230 is a reply to message #169928] Fri, 26 May 2006 16:59 Go to previous message
Lawrence Mandel is currently offline Lawrence Mandel
Messages: 486
Registered: July 2009
Senior Member
>Just a quick q (I am new to WSDL). When I create a new WSDL doc, why are

>all elements within the WSDL prefixed with wsdl: ?
>I am reading some docs on WSDL 2.0, and they state that if there is a
>desecription element defined with the wsdl 2.0 namespace defined, there
is
>no need to prefix all the elements.
>
>Thanx for the clarification ahead of time.

The prefix is there because WSDL is an XML language that uses namespaces.

You're correct that the elements do not have to be prefixed. If the WSDL
namespace is specified as the default using xmlns="" all non-prefixed
elements will be in the WSDL namespace. In this case your definitions
element will look something like

<definitions name="Echo"
targetNamespace="http://www.example.org/Echo/"
xmlns:tns="http://www.example.org/Echo/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
...
</definitions>

as opposed to the following editor default

<wsdl:definitions name="Echo"
targetNamespace="http://www.example.org/Echo/"
xmlns:tns="http://www.example.org/Echo/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
...
</wsdl:definitions>

Lawrence
Previous Topic:location of tomcat configuration
Next Topic:NoClassDefFoundError: org/eclipse/wst/common/componentcore/GlobalComponentChangeListener
Goto Forum:
  


Current Time: Wed Sep 17 07:34:19 GMT 2014

Powered by FUDForum. Page generated in 0.01547 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software