cancel
Showing results for 
Search instead for 
Did you mean: 

XML -> XSLT

Former Member
0 Kudos

I have the codigo XML that I obtain of a webservice, like I can obtain the result that comes in AuthenticateUserResult, using a program XSLT, thanks

*************

spanish :

tengo el codigo XML que obtengo de un webservice, como puedo obtener el resultado que viene en AuthenticateUserResult, usando un programa XSLT, gracias

************

ej:

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

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Body>

<AuthenticateUserResponse xmlns="http://tempuri.org/">

<AuthenticateUserResult>string</AuthenticateUserResult>

</AuthenticateUserResponse>

</soap:Body>

</soap:Envelope>

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

what exactly do you want to do? Do you want to use that XML as input message in an XSLT mapping?

***

Que quieres hacer? Quieres usar este XML como input message en un mapeo de XSLT y obtener el tag AuthenticateUserResult?

por favor, intenta de ser mas especifico.

Saludos

Christine

Former Member
0 Kudos

Tengo el XML que leo desde un webservice, no he podido crear un XSLT que me permita usando el

CALL TRANSFORMATION (`Y_PDA1`)

SOURCE XML P_WF_STRING1 "XML leido

RESULT CLA = CLA. "valor AuthenticateUserResult

me entrega como resultado el valor que trae el AuthenticateUserResult.

Las pruebas que realizo me trae como resultado : "Error de formato ABAP-XML en nodo XML de clase "element", nombre: "abap" "

El XSLT que tengo es :

Esto lo realize viendo algunos ejemplos que encontre en el foro.

Este es solo uno de varios XML que necesito transformar, pero sabiendo como hacer este me puede servir como base para poder hacer los restantes.

gracias.

Waldo (de Chile).

PD : gracias por usar el español, mi ingles no es muy bueno.

Former Member
0 Kudos

I have the XML that read since a webservice, I have not been able to create a XSLT that permit me using the

CALL TRANSFORMATION (`Y_PDA1`)

SOURCE XML P_WF_STRING1 "XML read

RESULT CLA = CLA. "valor AuthenticateUserResult

The value delivers as a result me that brings the AuthenticateUserResult.

The tests that carry out brings as a result me: "ABAP-XML format Error in node XML of class "element", name: "abap" "

The XSLT that have is Y_PDA1:

<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0 ">

<xsl:element xml:space="*"/>

<xsl:template match="Envelope">

<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">

<asx:values>

<CLA>

<xsl:apply-templates/>

</CLA>

</asx:values>

</asx:abap>

</xsl:template>

<xsl:template match="Envelope"/>

<xsl:variable name="soap1" select="."/>

<xsl:template match="Body"/>

<xsl:variable name="soap2" select="."/>

<xsl:template match="AuthenticateUserResponse"/>

<xsl:variable name="clav" select="AuthenticateUserResponse"/>

</xsl:transform>

This carry out it seeing some examples that find in the forum.

thanks

Waldo