cancel
Showing results for 
Search instead for 
Did you mean: 

How to add namespace prefix to XML file?

Former Member
0 Kudos

I have a file(XML) to proxy scenario. I 've created an asynch Inbound message and a asynch Outbound message.

I have generated the class in Sproxy of my R/3 System.

In the Integration directory I have 2 business system :

-one which sent the file

-my r/3 system

System which send file generate XML like this:

<?xml version="1.0" encoding="UTF-8" ?>

<batch id="20080211001" customer="some customer" user="user" language="EN">

<structure>

<localization>

<string id="customer" text="Customer" />

etc........

As you see, it have not any namespace prefix.

How can I insert namespace prefix in this file with XI tools?

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

You can add the namespace with mapping.

Upload an xml sample or an xsd for sender message type, the proxy structure for receiver message type.

The namespace is created autoatically.

Stefan

Former Member
0 Kudos

Thanks everybody for answers.

Stefan but how can I upload an xml sample or an xsd to sender MT?

Former Member
0 Kudos

Hi Stefan!

I don't understand it too.. What exactly did you mean?

Thanx, Peter

stefan_grube
Active Contributor
0 Kudos

You upload the xml to the message mapping instead of a message type.

Stefan

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks Stefan, now everything is working fine

Former Member
0 Kudos

Hi Pavel

I am also facing the same issue

my XML structure is quite complex

<ROW EVENT="RE" SEQ="9" MORE="Y" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >

<FileDate Internal="61409" ROWID="Y">02/17/2009</FileDate>

<FileSeq ROWID="Y">9</FileSeq>

<Event>RE</Event>

<Grp>3</Grp>

<LinkFileTime>42324</LinkFileTime>

<Mrn></Mrn>

<ROW DESCR="RE" TABLE="PAT" EVENT="RE">

<BusTel/>

<BusTelHipaaConsent/>

<Cont1Addr1/>

<ROW DESCR="RE" TABLE="INS" EVENT="RE">

<DictRef1/>

<DictRef10/>

Do i have to create the Message Interface for Outbound Synchronous ..

<DictRef11/>

henrique_pinto
Active Contributor
0 Kudos

>

>

> As you see, it have not any namespace prefix.

> How can I insert namespace prefix in this file with XI tools?

The main question here is "why do you even need the prefixes?".

If the file structure doesn't have any, then remove the XML namespace from your message type. The prefixes won't be necessary.

Regards,

Henrique.

Former Member
0 Kudos

You could achieve this using XSLT transformation mapping (quite easy) or by developing a custom adapter module. I don't think there is a "standard" way, how to do it in XI.

Peter

Former Member
0 Kudos

HI,

I think you need to handle it with Adapter module.

please also refer below links

Thanks

Swarup