on 06-04-2010 12:51 AM
I need to map a nillable as a xsi:nil="true" to a tibco service.
The SAP systems are SAP XI 700 and R/3 6.4.
The problem is that when a date comes empty from R/3 and I map it to a nillable = "True" target XI doesn't support the transformation and parameter isn't mapped.
I think the most affordable solution is a xsl mapping to correct and parse in the target the missing <dateEnd xsi:nil="true"/>.
Can you provide hints to a xsl to map the xsi:nil="true" for certain parameters of type dateTime to the target in a soap message environment?
Thanks in advance,
Miguel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe you could use Java mapping for this?
In graphical mapping tool you provide an entry, that no other element could have like @@, then in Java mapping you use replace method to change >@@ with xsi:nil="true">
You also have to provide namespace declaration xmlns:xsi="..."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i agree to Stefan...Java mapping is the most appropriate way to add this...
so whichever is your actual mapping, add after that a java mapping in the interface mapping chain which does simply a check if the tag doesnt have any value and then add an attribute xsi:nil=true and offcourse with the additional of namespace declaration at the start of the XML.
the java mapping could also be designed as a reusable one.
Rgds,
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.