[SWS-696] Xpath namespace declarations duplication Created: 23/Feb/11  Updated: 24/Mar/11

Status: Open
Project: Spring Web Services
Component/s: XML
Affects Version/s: 2.0 GA
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: omar elmandour Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

windows xp


In the earlier Spring ws version like in 1.5 it was possible for xpath to define nameSpace like this :

    <sws:namespace uri="http://ws.scribe.recouv.fr/definition/modeles-v1.0" prefix="modv1.0"/>

This is not more present in
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd.

1-Not retro compatible

So if someone try to upgrade to the latest version, the sws:xpath-endpoints is not more present.
So he have to declare the bean

I was thinking that this element was remove because this class XPathParamAnnotationMethodEndpointAdapter was remove too.
But that is no the case.It is deprecated.

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 :

Package organisation

Enpoint1 and enpoint2 were using the namespace modv1.0 with @XPathParam.
Now i have to declare informations in two package-info.java to make it work.

For example for the package tomato i will be :

value = 
@org.springframework.ws.server.endpoint.annotation.Namespace(uri = "http://ws.scribe.recouv.fr/definition/instances-v1.0",prefix="modv1.0")   
package org.vegetable.tomato;

Comment by Arjen Poutsma [ 24/Mar/11 ]

Note that you can still stick to the 1.5 version of the XSD, which still works.

Generated at Fri Oct 19 07:06:13 UTC 2018 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.