on 04-25-2016 6:58 AM
Hi,
I am trying to implement the JMS -> SOAP interface on PI 7.11. The inbound interface is expecting the CDATA[] in xml format and it's being validated against their XSD. If the validation fails, like if the data format or attributes in the CDATA xml does not match to the one in XSD, the message fails. The sender is sending the data with different structure and with different attributes. Now, my question is how can I map the outbound data with different hierarchies, different attribute names from the inbound and convert it to a CDATA? Please let me know.
Best Regards,
Sai
Hi Sai,
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have done the same thing Praveen, nothing changes. The strange thing is, I have tried to testing this in the normal java class on NWDS, I can't replace there as well. The below is the code that I have used:
public static void main(String[] args) {
String input = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
System.out.print(input+"\n");
input.replaceAll("<?xml version=\"1.0\" encoding=\"UTF-8\"?>","Test");
System.out.print(input);
}
This always print the <?xml version=\"1.0\" encoding=\"UTF-8\"?> as output. Is there a way that I could debug it?
Regards.
Hi Sai,
You no need to replace them those are the escape characters and it is just display, if you click pretty print button in the message mapping test tab then you will be able to see the CDATA section.
This will work for this requirement because i also done the same thing in my project it works perfectly.
Regards,
Praveen.
Hi Sai,
As per my knowledge, there is two options -
1. take whole source structure into a single parameter and write an UDF - where you can read attribute wise as per your requirement and then send data to target end.
2. Go for Java mapping.
Thanks,
Apu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.