Reputation: 562
We're working with JAX-WS in conjuntion with JAXB (2.1).
First, we've created the Java classes linked to the XSDs types.
Then, using CXF (2.1.3), Spring (2.0.8) and JAX-WS we've published a Webservice from a JAXB type (in fact a @XmlType), like this:
@WebMethod(operationName = "addExample")
public @WebResult void addExample(
@WebParam(name = "EXAMPLE") EXAMPLETYPE exemple);
We know that the webservice is published using the package name of the interface (inverse) or using the @WebService annotation the "targetNamespace" we could define. In fact, we did it with something like:
@WebService(targetNamespace = "http://blablabla")
At this time, we need to maintain the whole targetNameSpace of the WebService but we need to change the namespace of the @java.jws.WebParam (i.e EXAMPLE param in our case).
It is possible? The annotation never works for us, doing things like that:
@WebMethod(operationName = "addExample")
public @WebResult void addExample(
@WebParam(name = "EXAMPLE", targetNamespace = "http://thats.all.folks") EXAMPLETYPE exemple);
We are really lost...
Thank you,
Upvotes: 1
Views: 8191
Reputation: 14607
I think you need to upgrade to a newer (and supported) version of CXF. I believe this was a bug that was fixed a very long time ago.
Upvotes: 2