Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to determine wsdl version?

 
Minhaj Mehmood
Ranch Hand
Posts: 400
Hibernate Java Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Minhaj Mehmood
Ranch Hand
Posts: 400
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ivan, I think you're referring to definitions node.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic