on 06-20-2006 9:09 AM
Hi guys,
I'm following Michal web log "XML node into a string with graphical mapping?" and I'm trying to use a variable that brings me the interface name for I can use this xslt program for each mapping that I have.
I just check the xslt runtime constants on help.sap.com and I declared the parameter name just sap help shows! But when I test it on tcode xslt_tool it doesnt work and in debug I cant see any value for my $Interface runtime constant.
My code:
[code] <xsl:param name="Interface"/>
<xsl:strip-space elements="*"/>
<xsl:template match="/">
<sendTO>
<arg1>
<xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text>
<xsl:copy-of select="$Interface"/>
<xsl:text disable-output-escaping="yes">]]</xsl:text>
<xsl:text disable-output-escaping="yes">></xsl:text>
</arg1>
</sendTO>[/code]
Anyone knows where is my mistake?
Thanks in advance,
Ricardo.
Hi,
can yout try testing the whole flow?
with your mapping and not the debugging only?
refere to:
"In the same way as in Java mappings, the mapping runtime in XSLT programs also returns parameters that you can use to evaluate information in the XSLT program that is not known <b>until runtime</b>"
from help.sap.com
maybe you can only see those when you debug
the message mapping (as you can fill them
on the separate tab)
BTW
you can also use:
<xsl:value-of select="$Interface" />
to get the value
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes,
And we can test it with sxi_mapping_test transaction without execute the whole scenario.
But now I realize that I dont need the interface name, but the root element of my outbound interface (message type) to put the whole xml into a string dynamically.
<?xml version="1.0" encoding="UTF-8"?>
<<b>ns0:P1100_val</b> xmlns:ns0="http://switching/xi">
<R000000>
<R00000010/>
I just want to take the value on bold How can I read the payload and catch the root element.
Thanks a lot for your precious help
Ricardo.
Message was edited by: Ricardo Quintino
of course
<?xml version="1.0" encoding="utf-8" ?>
<ns0:P1100_val xmlns:ns0="http://switching/xi">
<R000000>
<R00000010>R000000</R00000010>
<R00000020>I</R00000020>
<R00000030>0002</R00000030>
<R00000040>2</R00000040>
<R00000050>0002</R00000050>
<R00000060>1</R00000060>
<R00000070>0001</R00000070>
<R00000080>2</R00000080>
<R00000090>2000220069000000084</R00000090>
<R00000100>20060605105803</R00000100>
<R00000110>01.02</R00000110>
<R00000120>A012</R00000120>
<R00000130>P1100</R00000130>
<R00000140>1</R00000140>
<R00000150>111111111111111111DP</R00000150>
<R00009000>20060605110325</R00009000>
</R000000>
<R110000>
<R11000010>R110000</R11000010>
<R11000020>1</R11000020>
<R11000025>N</R11000025>
<R11000030>3423</R11000030>
</R110000>
<R999900>
<R99990010>R999900</R99990010>
<R99990020>3</R99990020>
</R999900>
</ns0:P1100_val
>
Regards,
Ricardo.
hi,
I only managed to do it like this:
<?xml version='1.0' ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://switching/xi">
<xsl:template match="/">
<sendTO>
<arg1>
<xsl:text disable-output-escaping="yes"><![CDATA[<![CDATA[]]></xsl:text>
<xsl:value-of select="ns0:P1100_val/namespace-uri()"/>
<xsl:text disable-output-escaping="yes"><![CDATA[]]]]></xsl:text>
<xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
</arg1>
</sendTO>
</xsl:template>
</xsl:stylesheet>
but try the runtime constants<b> in the FLOW</b>
real one (<b>not test transactions</b>)
Regards,
michal
Hi,
the name of the bean is the same for all adapters:)
also refere to this one
https://weblogs.sdn.sap.com/pub/wlg/3823 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
REgards,
michal
Hi Michal,
Im following the Stefan web log that you gave me and Im trying to configure a receiver soap adapter. I filled the parameters of the Module adapter and when I save it, the parameters disappear!!! But if I edit again both parameters appear again
Is it typical? Do you know whats happening?
Regards,
Ricardo.
hehe are you sure you're Ricardo and not David?
David Copperfield... )
but no, this is not normal they are visible all the time
but since they exist (when you edit)
try executing your scenario and check
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.