File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes wsdl namespace confusing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "wsdl namespace confusing" Watch "wsdl namespace confusing" New topic

wsdl namespace confusing

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
In the book, 'J2EE� Web Services'

" message automatically take on the namespace specified by the targetNamespace attribute."

My question is , why 'message' will use targetNamespace, not default namespace, 'xmlns="" ' ?

because, in my understanding, all elements should conform to defalut namespace, except those defined in this xml schema (that is , targetNamespace). But we didn't see 'message' defined in this xml schema, so , I think 'message' should use default namespace.

Could you please clarify my confusing ?

J Davidson

Joined: Jul 12, 2006
Posts: 5
Go to and you'll find your answer.
I agree. Here's the link:
subject: wsdl namespace confusing
It's not a secret anymore!