on 07-14-2009 9:46 AM
Hello All
NWPI 7.1
I'm trying to implement simple integration model, just to refresh and test information gained on courses and I've got stuck a bit.
When I try to test the configuration (Menu Tools->Test Configuration) process goes as follows:
correct Sender Agreement
correct Receiver Determination
correct Interface Determination
Runtime error on Operation Mapping:
com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ns0:NameMessage. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD
Mapping seems to be ok - testing in ESR gives correct result. Besides it is very simple - interface is synchronous, request is one string and response is another.
Where to check for a bug?
BTW: as payload for testing purposes in PI I use XML copied from testing window of WSNavigator.
Any help will be appreciated
Best regards
Maciej Gottfried
Cannot create target element /ns0:NameMessage
ns0:NameMessage seems to be the root element of your message and may have occurence as 1..1 (i.e. mandatory) in such a case no need to map it to any source node...remove the mapping for this node and then test again.....
Also use the same payload as you are using in IR to test the Mapping...
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, you're right - this is root element because whole message is built of one field. I've tried to remove maping at all, but I get this error:
Target field mapping '/ns0:NameMessage' incomplete; reason: Mapping for target field '/ns0:NameMessage' incomplete
Source XSD:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://test.company.pl" xmlns="http://test.company.pl" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="NameMessageOut" type="Name"/>
<xsd:simpleType name="Name">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/VersionID">bbda09a16c9111de91e300155df86b14</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
</xsd:schema>
Destination:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://test.company.pl" xmlns="http://test.company.pl" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="NameMessage" type="Name"/>
<xsd:simpleType name="Name">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/VersionID">3e31fa616bbc11de926500155df86b14</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
</xsd:schema>
Mapping is just NameMessageOut -> NameMessage - both are 1..1
regards
Maciej
So I thought.
By the way: what is the correct payload to test this case (I've described it in my initial post) ?
In the mapping editor I just provide simple text as input and it correctly gets transported to the other end of mapping.
In test tool for configuration in Integration Builder I've used XML from WebService call and maybe it's wrong? When I've used just simple "abcd" as payload I've received exception:
com.sap.aii.utilxi.misc.api.BaseRuntimeException: Content is not allowed in prolog.
Could you provide me some sample of payload in this test tool?
regards
Maciej
Hi!
Did you try to refresh message type in Message Interface and use 'read interfaces' option in Interface Mapping? The problem could be caused by previous MT definition.
Regards,
Radek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A mandatory element in the target seems not mapped..or some issue with the payload.
Try using the same payload and test in your mapping(instead of manually entering the value).
Can you paste the source and target structure along with the mapping you have done.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
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.