[SWS-696] Xpath namespace declarations duplication Created: 23/Feb/11 Updated: 24/Mar/11
|Project:||Spring Web Services|
|Affects Version/s:||2.0 GA|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
In the earlier Spring ws version like in 1.5 it was possible for xpath to define nameSpace like this :
This is not more present in
1-Not retro compatible
So if someone try to upgrade to the latest version, the sws:xpath-endpoints is not more present.
I was thinking that this element was remove because this class XPathParamAnnotationMethodEndpointAdapter was remove too.
2-So the actual solution is to upgrade to DefaultMethodEndpointAdapter according to the documentation.
Now we have this issue : it is not possible to declare the namespace globally like previously.
We have to use @org.springframework.ws.server.endpoint.annotation.Namespace(s) instead.
Let say that i have a package organizing like this :
Enpoint1 and enpoint2 were using the namespace modv1.0 with @XPathParam.
For example for the package tomato i will be :
|Comment by Arjen Poutsma [ 24/Mar/11 ]|
Note that you can still stick to the 1.5 version of the XSD, which still works.