on 11-02-2017 8:13 PM
i have used java mapping to replace & with & in XML file.
the whole scenario is working when tested in operation mapping,
But while testing end to end i am getting the same error i.e interface determination error which i used to get before implementing the java mapping (reason for this was & in XML file ).
The interface determination error as resolved when i manually changed and processed the XML through test .
So please let me know if i need to configure something after doing java mapping.
Check the status of cache and refresh if required.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhishek!
I can't catch the aim of replacing the symbol with exactly the same symbol. What do you want to do? Or if it's the editor issue which doesn't show correct representation?
If you have any issues with your xml file contents caused by using '&' symbol within it (which means that your source xml file is not well-formed), you should replace such symbols using escape sequence.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Have you reactivated the interface determination? Sometimes it keeps the old mapping.
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
public class DDN_java_mapping extends AbstractTransformation {
@Override
public void transform(TransformationInput transformationInput, TransformationOutput transformationOutput) throws StreamTransformationException {
try {
InputStream inputstream = transformationInput.getInputPayload().getInputStream();
OutputStream outputstream = transformationOutput.getOutputPayload().getOutputStream();
byte[] b = new byte[inputstream.available()];
inputstream.read(b);
String inputContent = new String(b);
inputContent = inputContent.replaceAll("&", "&");
outputstream.write(inputContent.getBytes());
} catch (Exception exception) { getTrace().addDebugMessage(exception.getMessage()); throw new StreamTransformationException(exception.toString());
}
}
}
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.