Ver Mensaje Individual
  #1  
Viejo 23/12/11, 08:25:47
oarranzli oarranzli is offline
Senior Member
 
Fecha de Ingreso: jun 2006
Localización: España
Mensajes: 373
Transformación a xml no mantiene la cabecera

Hola:

Estoy intentando crear un fichero xml con una cabecera como la siguiente:

<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>
...

Para ello he escrito el siguiente código a través de la transacción 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>
...

Sin embargo, cuando lanzo el programa que ejecuta mi CALL TRANSFORMATION la cabecera del fichero xml es muy diferente a lo que esperaría:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Body>
<tem:mygestem xmlns="http://tempuri.org/">
<tem:mytem>
...

¿Alguien que haya trabajado con transformaciones a xml podría decirme por qué SAP no crea la cabecera del xml tal y como se le envía?

Muchas gracias,
Oscar
__________________
Óscar

Responder Con Cita