• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A question with respect to structure of wsdl file

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have written a simple web service and sun one Application server has generated a WSDL file for it . When seeing this wsdl file as shown :
The below is only a small instance .



Please tell me why everything is appended with tns ??

Thank you .
 
Evan Caballero
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tns means TargetNameSpace : it is the main XML namespace for your whole WSDL definitions, and it is used to prefix them. Look at the top of your WSDL file, you have there a lot of xmlns:XXX references, which are all the namespaces used in it ; probably xmlns:tns, xmlns:xsd, xmlns:soap: xmlns:wsdl etc ...
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the answer .
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ravi,

My book - Java Web Services in a nutshell, says in page #210 -

The name used to declare a type, in this case BookInfo, cannot be explicitly namespace-qualified. It is automatically assigned to the targetNamespace of the enclosing schema element, ...



Regards,
Dan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic