I have used the same Message Type and RFC interface in two different Name Spaces.
When I try a test mapping using this (in both):
<?xml version="1.0" encoding="UTF-8"?>
<CAMS_MT_LG>
<MAIN>
<LG1 />
<LG2 />
<LG3 />
<LG4 />
<LG5 />
<LG6 />
<LG7 />
<LG8 />
<LG9 />
<LG10 />
</MAIN>
</CAMS_MT_LG>
One test works and one doesn't...the error is:
Cannot produce target element /ns0:Z_LOAD_LARGE. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
Why should one of the mappings expect this (in order to work)...
<?xml version="1.0" encoding="UTF-8"?>
<ns2:CAMS_MT_LG xmlns:ns2="http://CAMS_NS_LG">
<MAIN>
<LG1 />
<LG2 />
<LG3 />
<LG4 />
<LG5 />
<LG6 />
<LG7 />
<LG8 />
<LG9 />
<LG10 />
</MAIN>
</ns2:CAMS_MT_LG>
...in other word the full definition of the ns...
Another thing is I do not know how to get xmlns:ns2 into the mapping in my file adapter bacause...
xml.documentName=ns1:CAMS_MT_LG
xml.documentNamespace=http://CAMS_NS_LG
...generates...
<ns2:CAMS_MT_LG xmlns="http://CAMS_NS_LG">
Do anyone know what I'm doing wrong?
Thanks
Patrick