How to attach a prefix to an element (AbstractDomPayloadEndpoint)
I am trying to attach a prefix to elements in my SoapResponse, but with no success.
This is the desired response:
<tst:GetElementsResponse xmlns:tst="http.../tst">
<tst:Element>
<tst:id>1</tst:id>
<tst:name>element 1</tst:name>
</tst:Element>
</tst:GetElementsResponse>
And this is what I currently get:
<GetElementsResponse>
<Element>
<id>1<id>
<name>element 1<name>
</Element>
</GetElementsResponse>
I am building my respose using org.w3c.dom.Element, and tried adding the prefix through element.setPrefix(), but it seems to have no effect.
Thanks,
P