cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP Receiver Adapter - delete <?xml version="1.0" encoding="UTF-8"?>

Former Member
0 Kudos

Hi,

Is it possible to delete the part below when sending an HTTP request through HTTP receiver adapter without any java/abap/xslt mapping?

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

<ns0:MT_SELL xmlns:ns0="http://test.com/Sell">

Thanks

Arman

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

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

==> You cannot remove this, it's the XMl header and a basic requirement for the message.

<ns0:MT_SELL xmlns:ns0="http://test.com/Sell">

==> Here you may check whether this part is a must to be able to validate the XML against the XSD structure that describes the message format. If it's not necessary from the XSD side you can remove it by XSLT or Java.

Regards,

Kai

Former Member
0 Kudos

Hi Kai Lerch-Baier,

You are right. <?xml version="1.0" encoding="UTF-8"?> cant be removed.

Have the other one removed with Java <ns0:MT_SELL xmlns:ns0="http://test.com/Sell">.

Thanks.

Answers (4)

Answers (4)

prateek
Active Contributor
0 Kudos

A way could be a little use of ABAP and enhance the adapter using adapter module as shown below

/people/william.li/blog/2009/03/19/adapter-user-module-for-http-adapter

Regards,

Prateek

JoelTrinidade
Active Contributor
0 Kudos

Hi Arman,

Is it possible to delete the part below when sending an HTTP request through HTTP receiver adapter without any java/abap/xslt mapping?

No its not possible without the use of java/abap/xslt mapping and the first line is part of protocol and its indispensable.

Regards

joel

prasannakrishna_mynam
Contributor
0 Kudos

Hi,

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

Specifies that the given message is xml

<ns0:MT_SELL xmlns:ns0="http://test.com/Sell">

Specifies its a MessageType of the payload, without this that message is not identifies and is not processed. Its manditory to have these. Other wise error will raise.

Regards,

Prasanna

Former Member
0 Kudos

Hi,

As per my knowledge, these are the first two lines of the XML. First line describes the XML version and the encoding where as second line describes the namespace. Both these lines are important from XML parsing point of view. Hence, these are must.

Hope this helps.

Thansk and Regards,

Kalpesh