aspose file tools*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes how to determine wsdl version? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "how to determine wsdl version?" Watch "how to determine wsdl version?" New topic
Author

how to determine wsdl version?

Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

how to determine which wsdl version is used by looking at wsdl xml?
is there any annotation to switch wsdl version in JAX-WS end point?


SCJP6 96% | SCWCD5 81% | SCDJWS5 79%
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
To determine which version a WSDL is of, take a look at the namespace in the <description> element:
WSDL 2.0: xmlns="http://www.w3.org/ns/wsdl"
WSDL 1.2: xmlns="http://schemas.xmlsoap.org/wsdl/"

Regarding your second, question: I am not entirely sure that JAX-WS indeed supports WSDL 2.0. Perhaps someone else can enlighten us.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

Thanks Ivan, I think you're referring to definitions node.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Ah, you caught me! :-)
Of course I was referring to the <definitions> node, even though I wrote the <description> element.
Thanks for pointing this error out!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to determine wsdl version?
 
Similar Threads
Determing parameters of a service
How to remove the comment in wsdl
crazy sql exception! code works on other machine but doesn't work on mine
Version of JSDK
How to determine CSS version used for a page?