Hello,

I am running into problems with namespaced attributes while writing out a SOAP header from a client side JAX-RPC handler.

When using the following code ...

currentElement.addNamespaceDeclaration("prefix1", "uri1");

javax.xml.soap.Name attributeName = soapEnvelope.createName("attr1", "prefix1", "uri1");

currentElement.addAttribute(attributeName, "somevalue");


On the wire looks like ...


<someelement attr1="somevalue" xmlns:prefix1="uri1">

instead of...

<someelement prefix1:attr1="somevalue" xmlns:prefix1="uri1">



Am I using the API incorrectly, or perhaps this could be a bug? Any ideas appreciated. In the mean time, passing in "prefix1:attr1" as the attribute localname works as a workaround.


Cheers,


Alex

Reply via email to