users@jax-ws.java.net

Question regarding JaxWS and namespace prefixes.

From: Philip Vendil <philip_at_primekey.se>
Date: Mon, 18 Dec 2006 07:06:58 +0100

Hi all

I'm trying to implement to XKMS protocol for our open source project
EJBCA and have stumbled into problems with namespace prefixes.
In the WSDL are the digital-signature and digital encryption schemes
imported but it always seems that they get the namespace prefix 'ns2'
(or similar) instead of prefered 'ds' or 'xenc' when performing Web
Service calls.

I have tried using a NamespacePrefixMapper that is registered in the
marshall.setProperties() in the XKMS webservice and that seems to
generate a WSDL with the given namespaces but when I run the client are
still the 'ns2' used.

The reason I want the prefix to 'ds:' is that it seems that some
applications verifying the signature is searching the XML-document for a
'ds:Signature' tag.

I have spent countless of hours trying to resolve this and I would be
very happy for any hints

Regards
Philip Vendil