on 11-14-2014 6:05 PM
Hi All,
we have a scenario of JMS to IDOC. In which the source xml is of format
Actual xml
<?xml version="1.0" encoding="UTF-8" standalone="true"?>
-<XTB xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="Namespace in PI">
<element>
</element>
</XTB>
The above xml is to be changed to the below format
Expected xml
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_XTB xmlns:ns0="Namespace in PI">
<element>
</element>
</ns0:MT_XTB>
Please help me in handling the above scenario.Do we need any udf ?If udf is to be used please provide the udf.I am new to SAP PI.
Hello,
What's ur exact issue? Message type name (hope it's not a typo) or is it namespace which is causing issue?
BTW, to adjust namespace and make it according as per ur request message u can delete the "XML Namespace" from the Message type. And regarding ur message type name u have to make it as per ur request message - No other simple alternative.
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello All,
Exact issue is the xml from MQ is coming with namespace
<?xml version="1.0" encoding="UTF-8" standalone="true"?>
-<ELB xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="Namespace in PI">
When it comes to PI it throws runtime exception.The xml expected is
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_ELB xmlns:ns0="Namespace in PI">.
If I change the message type name still the issue persists .I am facing the issue with namespace.please help
MT_XTB is the message type name. I don't think you can change it dynamically(unless you go for java mapping).
You can just create the message type name as "XTB"
Why don't you create your source structure according to the source xml from JMS system. There are many tools which can create xsd based on xml?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
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.