Reputation: 14575
I was wondering what are the xml qnames are they pre-defined name, is there a list of them or can I make my own name?
Upvotes: 4
Views: 1130
Reputation: 12339
The short answer is that you may make up your own name. A typical way to create a QName and instantiate a Service in Java would be:
QName serviceName = new QName("http://www.xmethods.net/sd/BNQuoteService.wsdl","BNQuoteService");
Service service = Service.create(url, serviceName);
The QName line came from this IBM site.
Upvotes: 2
Reputation: 11946
To make it simple, the qname is the global name in your tag, weither prefix:localname if a namespace is defined in your document, or just localname if not.
Upvotes: 0