on 04-26-2011 1:40 PM
Dear all!
I have SAP PI 7.1
I am facing problem in Receiver Determination while using Condition to select receiver based on the values in the payload.
I need, if Identificador = 1 then receiver BC_1 and if Identificador = 2 then the receiver BC_2
My payload has the value:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:p1="http://pruebas.endesa.es/AME4S_2">
<soap:Body>
<p1:MT_WS_SENDER_Q>
<IDENTIFICADOR>1</IDENTIFICADOR>
<OBJECT_ID>7600000009</OBJECT_ID>
</p1:MT_WS_SENDER_Q>
</soap:Body>
</soap:Envelope>
But, the trace shows following:
<Trace level="2" type="T">......extracting (new) for Extractor: XP /p1:MT_WS_SENDER_Q/IDENTIFICADOR </Trace>
<Trace level="2" type="T">......extracting values found: 0 </Trace>
I tried with double quotes, simple quotes, without quotes...
I tried too with a Receiver Rule (with context) and local rule with xpath....
Can someone please advise?
Thanks in advanced!!
Hi Veonica,
in the condition editor choose left operand and X-path and click to your field on the graphical surface. At right side just put the value, no quotes. Use the operator '='.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello!!!
Thanks!!! it's working!
I needed defined Service Interface as Stateless (XI30-Compatible) to can see in window condition, the help to X-path, So, I defined "Identificador" as Integer and I tried all our ideas, and finally, It works with:
//p1:MT_WS_SENDER_Q/IDENTIFICADOR = 1
Thanks to all, I'm really grateful to your help
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.