Skip to Content
0
Former Member
Jul 07, 2006 at 02:07 PM

Problem in transforming XML to string using XSLT

268 Views

Hi there,

I have a R/3 -> XI -> WebService scenario where the message from XI to webservice needs to be sent in document/wrapped mode (the message xml must be embedded in a string element) and this message needs to be digitally signed.

We are using another webservice to sign the messages, also with the message being sent in a string. To transform the XML's into string and vice-versa, we are using XSLT (/people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping).

The problem is that both the signer and the final webservice understand the special characters (like '<', '>', '&', '"' etc) in one way but the XSLT generates them in another way. For example, the character '<', in both webservices, is returned as "&#60;" but the XSL Transformation results in "&lt;".

The problem now is that our messages are always being rejected because the signature is not being recognized as true, though we are almost 100% sure that it's being done correctly. The only possibility to the error that we found is this character mapping being done differently.

So, it's like this:

XI sends string to signer as "&lt;"

XI receives string from signer as "&#60;"

XI processes the message

XI sends string to webservice as "&lt;"

XI receives string from webservice (containing error message) as "&#60;"

Is there a way of making the XSLT to return "&#60;" instead of "&lt;"?

Thanks in advace,

Henrique.