xml - What should be targetNamespace in API that is being versioned? -


our team developing api being versioned. have following naming schema:

http://example.com/remote/soap/vx.y/wsdl 

where x.y version number. question is: should targetnamespace contain whole wsdl address or i.e. http://example.com/remote/soap part?

digging through inernet, have found following tutorial 1 can read:

the value of targetnamespace unique identifier, typically companies use there url followed qualify it. in principle namespace has no meaning, companies have used url schema stored, targetnamespace , xml parsers use hint path schema [...]

taking under consideration fact our api can change among different versions, think better provide version number in targetnamespace uri.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -

jquery - How can I dynamically add a browser tab? -