on 06-28-2016 3:37 PM
Right now I cannot get the REST Receiver adapter to work like I expect in SAP PO 7.5
The scenario consists out of an outbound iDoc and an inbound REST Message.
When I send out an idoc I keep getting the error below.
Transmitting the message to endpoint <local> using connection IDoc_AAE_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rest.ejb.parse.InvalidXPathExpression: Invalid XPath expression "//PERNR"; Message: "Expression did not match."
Here's a screenshot of the REST Receiver adapter configuration:
I do not have the complete xPath above because I was advised not to. But with complete xPath in the configuration is still does not work.
Below is the payload of the incoming iDoc, where field PERNR is available in the last segment of the iDoc.
Any ideas? Thanks in advance.
Hi,
do you have any mapping from IDoc to rest inbound message?
how does the message type of your inbound service interface looks like.
if you are mapping the IDoc to some other xml, you would need to put the xpath expression from that receiver xml structure
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for you reply Naveep.
I have tried it like you said, but unfortunately I still get an error.
Transmitting the message to endpoint <local> using connection IDoc_AAE_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rest.ejb.parse.InvalidXPathExpression: Invalid XPath expression "//globalEmpNo"; Message: "Expression did not match." |
See below for the structure of the incoming message and the updated receiver channel settings.
Hi,
I would recommend you take the output payload after mapping and test it on this site, and see if the XPATH works:
Free Online XPath Tester / Evaluator - FreeFormatter.com
Alternately, post your XML (after mapping here) and we can have a look to see what is the problem.
Regards,
Sanjeev
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.