on 05-25-2007 4:16 PM
Hi,
we have XI 3.0, SPS 19.
I have a scenario with a mail sender.
I get mails with one attachment. This attachment is a plain text file - it's an EDIFACT-File.
Now, I use the module PayloadSwapBean to get this attachment - everything is fine.
My message-type looks very simple:
Element MT_SIMPLE, Datatype: string
(the whole EDIFACT-message is "stored" inside this string)
In my receiver determination, I have a condition, depending there is a String "XXXXX" inside the message
Condition: MT_SIMPLE[contains(.,'XXXXX:')] EX
But it doesn't work - I get the XI error message: No receiver found.
If I change my condition and work without XPATH-funktions:
New condition: MT_SIMPLE ~ 'XXXXX'
I get the error (it's german):
Problem beim Extrahieren der Werte aus der Nachricht:
Ausnahme CX_SWF_RLS_RULE aufgetreten
(Programm: CL_SWF_RLS_CONDITION==========CP,
Include CL_SWF_RLS_CONDITION==========CM00Q, Zeile: 161).
(English - or something like this :-):
Problem extracting the value from the message:
Exception CX_SWF_RLS_RULE occured
(Programm: CL_SWF_RLS_CONDITION==========CP,
Include CL_SWF_RLS_CONDITION==========CM00Q, Line: 161).
I think, the problem is the missing XML-Header (<?xml version="1.0" ...) in the message. All the XPATH-funktions are needing this xml-header.
Is it true?
How can I solv this? I have to pass the EDIFACT-Message unchanged to different systems - so I cannot convert it to an xml-structure.
Thx a lot!
Regards
Wolfgang
Hi,
if you need a free converter for EDIFACT you can try my stuff:
Just convert your EDIFACT to XML and back to EDIFACT again.
Regards
Matthias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wolfgang,
can you try the following?
Instead of a Data Type like:
DT_SIMPLE of type xsd:String
try to use a Data Type like:
DT_SIMPLE
..String of type xsd:String
Just create an element field inside your Data Type (don't use the root tag as element).
Make this change and try again your condition.
Regards,
Henrique.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Conditions based on xpath work only on xml messages.
Regards,
Wojciech
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.