aspose file tools*
The moose likes Web Services and the fly likes A question with respect to structure of wsdl file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "A question with respect to structure of wsdl file" Watch "A question with respect to structure of wsdl file" New topic
Author

A question with respect to structure of wsdl file

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

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 .


Save India From Corruption - Anna Hazare.
Evan Caballero
Ranch Hand

Joined: Dec 10, 2009
Posts: 59
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

Joined: Apr 18, 2009
Posts: 2234

Thank you for the answer .
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
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

William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: A question with respect to structure of wsdl file