I have create a JAX-WS web service using Netbeans, it's build successfully, and worked when I tested it with SOAPUI, but why this WSDL from JAX-WS is not very similar to "ordinary" wsdl I've seen on the internet.
For example definition
tag, in ordinary wsdl the definition tag is <wsdl:definition>
but in jax-ws wsdl it's just <definition>
without wsdl word.
what happen? and how to make the jax-ws generates an ordinary wsdl ?
Look into the namespace of wsdl. If the namespace has a local-name like xmlns:wsdl="WSDL namespace value"
then you will have to to use the wsdl:definition
in the xml file. If the default namespace for the XML document is defined such that xmlns="WSDL namespace value"
, then it is sufficient to day definition
.
Here is a quick doc on understanding namespaces .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.