ngx-soap icon indicating copy to clipboard operation
ngx-soap copied to clipboard

Tags XML after transformation contain multiple xmlns attributes

Open robli314 opened this issue 6 years ago • 0 comments

Hi, I realized that the following code in wsdl.ts on line 1922: ... xmlnsAttrib += childXmlnsAttrib; ...

generates the following output: ... <ns0:joinedAssignments xmlns:ns0="http://draft.schedule.domain.api.m" xmlns:ns0="http://draft.schedule.domain.api.m" xmlns:ns0="http://draft.schedule.domain.api.m" xmlns:ns0="http://draft.schedule.domain.api.m">false </ns0:joinedAssignments> <ns0:iitLinkedAssignments xmlns:ns0="http://draft.schedule.domain.api.m" xmlns:ns0="http://draft.schedule.domain.api.m" xmlns:ns0="http://draft.schedule.domain.api.m" xmlns:ns0="http://draft.schedule.domain.api.m">false </ns0:iitLinkedAssignments>...

Maybe that code could be replaced by: ... xmlnsAttrib = childXmlnsAttrib; ...

To be honest it is kind of redundant to have the xmlns on the attribute, as you are already declaring it on the envelope header.

robli314 avatar May 08 '19 21:05 robli314