Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (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 ChauFriend
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 MandelFriend
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: Sat Apr 20 03:14:46 GMT 2024

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

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

Back to the top