Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

xml header in transformation strans

Former Member
0 Likes
834

Hello,

I would like to create an xml file with the following header information:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema">

<soap:Body>

<tem:mygesttem>

<tem:mytem>

...

So, I have created the following piece of code in transaction STRANS:

<?sap.transform simple?>

<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">

<tt:root name="ROOT"/>

<tt:template>

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema">

<soap:Body>

<tem:mygestem>

<tem:mytem>

...

However, as soon as I launch it with CALL TRANSFORMATION in my ABAP program the xml file is different from I would expect:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">

<soap:Body>

<tem:mygestem xmlns="http://tempuri.org/">

<tem:mytem>

...

Could anyone tell me why the header is different from expected?

Thank you,

Oscar

Hello,

I would like to create an xml file with the following header information:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema">

<soap:Body>

<tem:mygesttem>

<tem:mytem>

...

So, I have created the following piece of code in transaction STRANS:

<?sap.transform simple?>

<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">

<tt:root name="ROOT"/>

<tt:template>

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema">

<soap:Body>

<tem:mygestem>

<tem:mytem>

...

However, as soon as I launch it with CALL TRANSFORMATION in my ABAP program the xml file is different from I would expect:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">

<soap:Body>

<tem:mygestem xmlns="http://tempuri.org/">

<tem:mytem>

...

Could anyone tell me why the header is different from expected?

Thank you,

Oscar

2 REPLIES 2
Read only

Former Member
0 Likes
567

Any ideas? please.

Read only

benu_mariantony2
Product and Topic Expert
Product and Topic Expert
0 Likes
567

Try out including the following taglines too in your ST..

<soap:Header>
  <m:Trans xmlns:m="http://www.w3schools.com/transaction/"
  soap:mustUnderstand="1">234
  </m:Trans>
</soap:Header>

here you go for more information... http://www.w3schools.com/soap/soap_header.asp

Regards,

Benu