Namespaces, SOAP and XSLT
Roseanne Zhang Because XSLT is doing exact the right thing! In your source, everything in your <update> tag belong to "http://why.is.this.url.repeated.in.the.result" name space. Therefore, those tags in your result should belong to the same namespace. How do I change it to be as it is specified in my specification document, where the namespace appears only in the update-tag and not in the tags under it? Do one of the following two will reach you "goal". The point is make those tags do not belong to the same namespace. However, I highly suspect that is what you really "want".
- Put xmlns="" in all tags under <update xmlns="http:..."> in you soap XML source
- Change it to:
<mytag:update xmlns:mytag="http://why.is.this.url.repeated.in.the.result"> <products> <SomeProduct> <ID>1</ID> <status>active</status> <username>someUser</username> <password>myPassword</password> </SomeProduct> </products> </mytag:update>