123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: cpscrn
- (C) Copyright IBM Corp. 2005, 2011
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <!-- $Header: //cpscrn/main/templates/cps4/producer/wsrp-impl/BaseServiceImpl.xts#1 $ -->
- <!-- $DateTime: 2008/10/22 11:12:04 $ -->
- <!-- $Change: 25109 $ -->
- <xts:morphlet version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/">
-
- <xts:block id="login" type="exec" mode="interpret" processor="XSLT" nodelist="envelope" condition="/root/envelope/*[local-name()='Envelope']/*[local-name()='Body']/*[1][local-name()='initCookie']" mandatory="false">
- <xts:logicsheet path="/cps4/common/logicsheets/soaplogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:soap="http://developer.cognos.com/schemas/cps/logic/soap" >
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:discard>
- <soap:request provider="cm">
- <bus:query xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <search>~</search>
- <properties xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:propEnum[1]">
- <item xsi:type="bus:propEnum">storeID</item>
- </properties>
- <options xsi:type="bus:queryOptions">
- <schemaInfo xsi:type="xsd:boolean">false</schemaInfo>
- </options>
- </bus:query>
- </soap:request>
- </xts:discard>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
-
- </xts:block>
- <xts:block id="execution" type="exec" mode="interpret" dependency="login" processor="XSLT" zzznodelist="output, envelope, setCookies, system, debug">
- <xts:logicsheet path="/cps4/producer/logicsheets/cps-portlet.xslt"/>
- <xts:logicsheet path="/cps4/common/logicsheets/soaplogic.xslt"/>
-
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:wsrp="urn:oasis:names:tc:wsrp:v1:types"
- xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:xos="http://developer.cognos.com/schemas/xts/output/"
- xmlns:soap="http://developer.cognos.com/schemas/cps/logic/soap"
- xmlns:portlet="http://developer.cognos.com/schemas/cps/logic/portlet/1/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:variable name="op" select="/root/envelope/SOAP-ENV:Envelope/SOAP-ENV:Body/*[1]"/>
- <xsl:variable name="op-name" select="local-name($op)"/>
- <xsl:variable name="handle" select="substring-before( concat( $op/wsrp:portletContext/wsrp:portletHandle, ':' ), ':' )"/>
- <xsl:key name="key-params" match="/root/envelope/SOAP-ENV:Envelope/SOAP-ENV:Body/*[1]/wsrp:interactionParams/wsrp:formParameters" use="@name"/>
- <portlet:passport/>
- <xsl:template match="/">
- <xts:sequence>
- <xsl:if test="$op-name = 'initCookie'">
- <xts:append select="/root/output/*[local-name()='protocolHeader']">
- <xsl:for-each select="/root/setCookies/cookie">
- <xos:param name="Set-Cookie">
- <xsl:value-of select="@name"/>
- <xsl:text>=</xsl:text>
- <xsl:value-of select="."/>
- </xos:param>
- </xsl:for-each>
- <xsl:for-each select="/root/output/*[local-name()='protocolHeader']/*[local-name()='param' and @name='setSoapHeader']/SOAP-ENV:Header/bus:biBusHeader/*[local-name()='hdrSession']/bus:setCookieVars/*[local-name()='item']">
- <xos:param name="Set-Cookie">
- <xsl:value-of select="*[local-name()='name']"/>
- <xsl:text>=</xsl:text>
- <xsl:value-of select="*[local-name()='value']"/>
- </xos:param>
- </xsl:for-each>
- </xts:append>
- </xsl:if>
- <xts:append select="/root/output">
- <xos:part>
- <xos:entityHeader>
- <xos:param name="Content-type">text/xml</xos:param>
- </xos:entityHeader>
- <xos:entityBody>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <SOAP-ENV:Body>
- <xsl:choose>
- <xsl:when test="$op-name = 'initCookie'">
- <wsrp:initCookieResponse xmlns:wsrp="urn:oasis:names:tc:wsrp:v1:types"/>
- </xsl:when>
- <xsl:when test="$op-name = 'performBlockingInteraction'">
- <!-- NOTES: Form params starting with 'edit_*' and 'stack_*' are reserved by this framework. -->
- <!-- Params starting with 'p_*' are saved in the portlet state (save operation). -->
- <!-- -->
- <!-- The 'interactionState' are: -->
- <!-- nav = Take all input params and saved them in the navigational state. -->
- <!-- merge = Merge all input params and existing navigational params in the navigational -->
- <!-- state. -->
- <!-- set:xxxx = Maintain all input params (like the 'nav') and set the properties identified -->
- <!-- as "session" into the channel named 'xxxx'. -->
- <!-- -->
- <!-- save = Save all input params starting with p_* in the portlet state. -->
- <!-- Unchecked checkboxes are also saved with a 'false' value. -->
- <!-- If 'edit_navState' is defined, this will become the new navigational state. -->
- <!-- reset = Clear both the navigational state and the portlet state. -->
- <!-- -->
- <!-- maintain = Copy all input params (including tmp_* and stack_* into the navigational state. -->
- <!-- Some edit_* variables are also set (see the code below). -->
- <!-- push = Save all current inputs on the stack and into the navigational state. -->
- <!-- pop = Cancel all input params and restore with what's on the stack. -->
- <!-- drop = Merge the current input params with what's on the stack. -->
- <!-- -->
- <xsl:variable name="interactionState" select="$op/wsrp:interactionParams/wsrp:interactionState"/>
- <xsl:variable name="params" select="$op/wsrp:interactionParams/wsrp:formParameters"/>
- <xsl:choose>
- <xsl:when test="($interactionState = 'save' or $interactionState = 'reset') and ($op/wsrp:interactionParams/wsrp:portletStateChange = 'readOnly')">
- <xts:transform name="XML" cache="false">
- <xts:param name="messageBase"><xts:queryValue select="/root/interfaces/interfaceInfo/param[@name='location']"/>/messages/cpsproducermsgs.xml</xts:param>
- <xts:param name="systemId">no-cache-id</xts:param>
- <xts:param name="src">
- <SOAP-ENV:Fault>
- <faultcode xmlns:wsrp="urn:oasis:names:tc:wsrp:v1:types">wsrp:PortletStateChangeRequired</faultcode>
- <faultstring><xts:string id="IDS_PRO_WSF_PORTLETSTATECHANGEREQUIREDFAULT"/></faultstring>
- <detail>
- <wsrp:PortletStateChangeRequired xmlns:wsrp="urn:oasis:names:tc:wsrp:v1:types"/>
- </detail>
- </SOAP-ENV:Fault>
- </xts:param>
- </xts:transform>
- </xsl:when>
- <xsl:otherwise>
- <wsrp:performBlockingInteractionResponse xmlns:wsrp="urn:oasis:names:tc:wsrp:v1:types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <wsrp:updateResponse>
- <xsl:choose>
- <xsl:when test="$interactionState = 'save'">
- <!-- save the portlet context -->
- <wsrp:portletContext>
- <wsrp:portletHandle>
- <xsl:value-of select="$op/wsrp:portletContext/wsrp:portletHandle"/>
- <xsl:if test="not( contains( $op/wsrp:portletContext/wsrp:portletHandle, ':' ) )">
- <xsl:text>:</xsl:text>
- <xsl:value-of select="xtsext:generateGUID()"/>
- </xsl:if>
- </wsrp:portletHandle>
- <!-- convert all input params starting with 'p_' as portlet state -->
- <xsl:variable name="new-state">
- <xsl:for-each select="$params[starts-with(@name, 'p_')]">
- <xsl:call-template name="gen-param">
- <xsl:with-param name="name" select="substring-after(@name, 'p_')"/>
- </xsl:call-template>
- </xsl:for-each>
- <xsl:for-each select="/root/system/param[@type = 'boolean']">
- <xsl:if test="not( key( 'key-params', concat('p_', @name) ) )">
- <xsl:call-template name="gen-param">
- <xsl:with-param name="name" select="@name"/>
- <xsl:with-param name="value" select="'false'"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:for-each>
- </xsl:variable>
- <wsrp:portletState>
- <xsl:if test="not($new-state = '')">
- <xsl:value-of select="xtsext:base64encode(string($new-state), true())"/>
- </xsl:if>
- </wsrp:portletState>
- <xsl:variable name="external-ref-params" select="/root/system/param[@externalRef != '' and @externalRef != 'none' and key('key-params', concat('p_', @name) )]"/>
- <xsl:if test="$external-ref-params">
- <wsrp:extensions>
- <cpsext:state xmlns:cpsext="http://developer.cognos.com/schemas/cps/wsrp/extensions/1/">
- <xsl:for-each select="$external-ref-params">
- <cpsext:externalRef name="{@name}" type="{@externalRef}">
- <xsl:value-of select="key('key-params', concat('p_', @name))/wsrp:value"/>
- </cpsext:externalRef>
- </xsl:for-each>
- </cpsext:state>
- </wsrp:extensions>
- </xsl:if>
- </wsrp:portletContext>
- <wsrp:navigationalState>
- <!-- restore last view's navigational state -->
- <xsl:value-of select="key( 'key-params', 'edit_navState')/wsrp:value"/>
- </wsrp:navigationalState>
- </xsl:when>
- <xsl:when test="$interactionState = 'reset'">
- <!-- reset the portlet context -->
- <wsrp:portletContext>
- <wsrp:portletHandle>
- <xsl:value-of select="$handle"/>
- </wsrp:portletHandle>
- <wsrp:portletState/>
- </wsrp:portletContext>
- <wsrp:navigationalState xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
- </xsl:when>
- <!-- the rest is navigationalState only -->
- <xsl:when test="$interactionState != ''">
- <xsl:variable name="stacks" select="$params[ starts-with( @name, 'stack_' ) ]"/>
- <xsl:variable name="current-stack-level" select="count( $stacks ) - 1"/>
- <xsl:variable name="current-stack-name" select="concat( 'stack_', string( $current-stack-level ) )"/>
- <xsl:variable name="markup">
- <!-- grab everything except: 'edit_' and 'stack_' fields -->
- <xsl:for-each select="$params[not(starts-with(@name, 'edit_') or starts-with(@name, 'stack_'))]">
- <xsl:call-template name="gen-param"/>
- </xsl:for-each>
- </xsl:variable>
- <wsrp:navigationalState>
- <xsl:choose>
- <xsl:when test="$interactionState = 'nav'">
- <xsl:if test="not($markup = '')">
- <xsl:value-of select="xtsext:validator('prepare','nav',xtsext:base64encode(string($markup), true()))"/>
- </xsl:if>
- </xsl:when>
- <xsl:when test="starts-with($interactionState, 'set:')">
- <xsl:variable name="set-data">
- <xsl:for-each select="$op/wsrp:markupParams/wsrp:navigationalState/param">
- <xsl:call-template name="gen-param">
- <xsl:with-param name="name" select="@name"/>
- <xsl:with-param name="value" select="."/>
- </xsl:call-template>
- </xsl:for-each>
- </xsl:variable>
- <xsl:if test="not($set-data = '')">
- <xsl:value-of select="xtsext:validator('prepare','set',xtsext:base64encode(string($set-data), true()))"/>
- </xsl:if>
- </xsl:when>
- <xsl:when test="$interactionState = 'merge'">
- <xsl:variable name="merge-data">
- <xsl:text><param name="interaction"></xsl:text>
- <xsl:value-of select="xtsext:base64encode(string($markup),true())"/>
- <xsl:text></param></xsl:text>
- <xsl:for-each select="$op/wsrp:markupParams/wsrp:navigationalState/param">
- <!-- only add navigational params that are missing form the interaction params -->
- <xsl:if test="not(key( 'key-params', @name ))">
- <xsl:call-template name="gen-param">
- <xsl:with-param name="name" select="@name"/>
- <xsl:with-param name="value" select="."/>
- </xsl:call-template>
- </xsl:if>
- </xsl:for-each>
- </xsl:variable>
- <xsl:if test="not($merge-data = '')">
- <xsl:value-of select="xtsext:validator('prepare','merge',xtsext:base64encode(string($merge-data), true()))"/>
- </xsl:if>
- </xsl:when>
- <xsl:when test="$interactionState = 'maintain'">
- <xsl:variable name="maintain-data">
- <xsl:value-of select="$markup"/>
- <xsl:call-template name="gen-param">
- <xsl:with-param name="name" select="'edit_mode'"/>
- <xsl:with-param name="value" select="key( 'key-params', 'edit_mode' )/wsrp:value"/>
- </xsl:call-template>
- <xsl:call-template name="gen-param">
- <xsl:with-param name="name" select="'edit_stack'"/>
- <xsl:with-param name="value" select="key( 'key-params', 'edit_stack' )/wsrp:value"/>
- </xsl:call-template>
- <xsl:call-template name="gen-param">
- <xsl:with-param name="name" select="'edit_visited'"/>
- <xsl:with-param name="value" select="'true'"/>
- </xsl:call-template>
- <xsl:if test="key( 'key-params', 'edit_navState' )">
- <xsl:call-template name="gen-param">
- <xsl:with-param name="name" select="'edit_navState'"/>
- <xsl:with-param name="value" select="key( 'key-params', 'edit_navState' )/wsrp:value"/>
- </xsl:call-template>
- </xsl:if>
- <!-- also include any 'stack_' fields -->
- <xsl:for-each select="$params[starts-with(@name, 'stack_')]">
- <xsl:call-template name="gen-param"/>
- </xsl:for-each>
- </xsl:variable>
- <xsl:value-of select="xtsext:validator('prepare','maintain',xtsext:base64encode(string($maintain-data), true()))"/>
- </xsl:when>
- <xsl:when test="$interactionState = 'push'">
- <xsl:variable name="push-data">
- <xsl:value-of select="$markup"/>
- <xsl:call-template name="gen-param">
- <xsl:with-param name="name" select="concat('stack_', string(number($current-stack-level) + 1))"/>
- <xsl:with-param name="value" select="xtsext:base64encode(string($markup), true())"/>
- </xsl:call-template>
- <xsl:call-template name="gen-param">
- <xsl:with-param name="name" select="'edit_mode'"/>
- <xsl:with-param name="value" select="key( 'key-params', 'edit_mode' )/wsrp:value"/>
- </xsl:call-template>
- <xsl:call-template name="gen-param">
- <xsl:with-param name="name" select="'edit_stack'"/>
- <xsl:with-param name="value" select="concat(concat(key( 'key-params', 'edit_name')/wsrp:value, '*'), key( 'key-params', 'edit_stack' )/wsrp:value)"/>
- </xsl:call-template>
- <xsl:if test="key( 'key-params', 'edit_navState' )">
- <xsl:call-template name="gen-param">
- <xsl:with-param name="name" select="'edit_navState'"/>
- <xsl:with-param name="value" select="key( 'key-params', 'edit_navState' )/wsrp:value"/>
- </xsl:call-template>
- </xsl:if>
- <!-- also include any 'stack_' fields -->
- <xsl:for-each select="$params[starts-with(@name, 'stack_')]">
- <xsl:call-template name="gen-param"/>
- </xsl:for-each>
- </xsl:variable>
- <xsl:value-of select="xtsext:validator('prepare','push',xtsext:base64encode(string($push-data), true()))"/>
- </xsl:when>
- <xsl:when test="$interactionState = 'pop'">
- <xsl:choose>
- <xsl:when test="key( 'key-params', string( $current-stack-name ) )">
- <xsl:variable name="pop-data">
- <xsl:call-template name="gen-param">
- <xsl:with-param name="name" select="'edit_mode'"/>
- <xsl:with-param name="value" select="substring-before( string( key( 'key-params', 'edit_stack' )/wsrp:value ), '*')"/>
- </xsl:call-template>
- <xsl:call-template name="gen-param">
- <xsl:with-param name="name" select="'edit_stack'"/>
- <xsl:with-param name="value" select="substring-after( string( key( 'key-params', 'edit_stack' )/wsrp:value ), '*')"/>
- </xsl:call-template>
- <xsl:call-template name="gen-param">
- <xsl:with-param name="name" select="'edit_visited'"/>
- <xsl:with-param name="value" select="'true'"/>
- </xsl:call-template>
- <xsl:if test="key( 'key-params', 'edit_navState' )">
- <xsl:call-template name="gen-param">
- <xsl:with-param name="name" select="'edit_navState'"/>
- <xsl:with-param name="value" select="key( 'key-params', 'edit_navState' )/wsrp:value"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:for-each select="$params[starts-with(@name, 'stack_') and @name != string( $current-stack-name )]">
- <xsl:call-template name="gen-param"/>
- </xsl:for-each>
- <xsl:value-of select="xtsext:base64decode(string( key( 'key-params', string( $current-stack-name ) )/wsrp:value ), true())"/>
- </xsl:variable>
- <xsl:value-of select="xtsext:validator('prepare','pop',xtsext:base64encode(string($pop-data), true()))"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="not($markup = '')">
- <!-- TODO: add a "stack-underflow" param here! -->
- <xsl:value-of select="xtsext:validator('prepare','underflow',xtsext:base64encode(string($markup), true()))"/>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="$interactionState = 'drop'">
- <xsl:variable name="drop-data">
- <xsl:value-of select="$markup"/>
- <xsl:call-template name="gen-param">
- <xsl:with-param name="name" select="'edit_mode'"/>
- <xsl:with-param name="value" select="substring-before( string( key( 'key-params', 'edit_stack' )/wsrp:value ), '*')"/>
- </xsl:call-template>
- <xsl:call-template name="gen-param">
- <xsl:with-param name="name" select="'edit_stack'"/>
- <xsl:with-param name="value" select="substring-after( string( key( 'key-params', 'edit_stack' )/wsrp:value ), '*')"/>
- </xsl:call-template>
- <xsl:call-template name="gen-param">
- <xsl:with-param name="name" select="'edit_visited'"/>
- <xsl:with-param name="value" select="'true'"/>
- </xsl:call-template>
- <xsl:if test="key( 'key-params', 'edit_navState' )">
- <xsl:call-template name="gen-param">
- <xsl:with-param name="name" select="'edit_navState'"/>
- <xsl:with-param name="value" select="key( 'key-params', 'edit_navState' )/wsrp:value"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:for-each select="$params[starts-with(@name, 'stack_') and @name != string( $current-stack-name )]">
- <xsl:call-template name="gen-param"/>
- </xsl:for-each>
- </xsl:variable>
- <xsl:value-of select="xtsext:validator('prepare','drop',xtsext:base64encode(string($drop-data), true()))"/>
- </xsl:when>
- </xsl:choose>
- </wsrp:navigationalState>
- <xsl:if test="$interactionState = 'pop' or $interactionState = 'drop'">
- <!-- update the mode (wsrp:newMode) by reading what's on the stack -->
- <!-- if wsrp-mode is not available, 'wsrp:edit' is assumed -->
- <!-- a wsrp-mode is available if the '|' char is present -->
- <!-- e.g. "xxx|yyy" means wsrp-mode=xxx, edit_mode=yyy -->
- <xsl:variable name="mode" select="substring-before( string( key( 'key-params', 'edit_stack' )/wsrp:value ), '*')"/>
- <wsrp:newMode>
- <xsl:choose>
- <xsl:when test="contains( $mode, '|' )">
- <xsl:value-of select="substring-before( $mode, '|' )"/>
- </xsl:when>
- <xsl:otherwise>wsrp:edit</xsl:otherwise>
- </xsl:choose>
- </wsrp:newMode>
- </xsl:if>
- </xsl:when>
- </xsl:choose>
- </wsrp:updateResponse>
- <xsl:if test="starts-with($interactionState, 'set:')">
- <xsl:variable name="channel" select="substring-after($interactionState, ':')"/>
- <xsl:variable name="variables" select="/root/system/param[@shared = 'true' and key( 'key-params', @name )]"/>
- <xsl:if test="$variables">
- <xts:discard>
- <xsl:variable name="name-prefix" select="concat( $op/wsrp:registrationContext/wsrp:registrationHandle, ':', $channel, '#' )"/>
- <xsl:for-each select="$variables">
- <xts:function name="TDSRequest">
- <xts:param name="action">set</xts:param>
- <xts:param name="session-id"><xsl:value-of select="$passport"/></xts:param>
- <xts:param name="map-id"><xsl:value-of select="'portlets'"/></xts:param>
- <xts:param name="name"><xsl:value-of select="concat($name-prefix, @name)"/></xts:param>
- <xts:param name="report-errors">true</xts:param>
- <xts:param name="source">
- <xsl:choose>
- <xsl:when test="@type='guid' and @updateOnSet='true'">
- <xsl:value-of select="xtsext:generateGUID()"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="key( 'key-params', @name )/wsrp:value"/>
- </xsl:otherwise>
- </xsl:choose>
- </xts:param>
- </xts:function>
- </xsl:for-each>
- </xts:discard>
- </xsl:if>
- </xsl:if>
- </wsrp:performBlockingInteractionResponse>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xts:transform name="XML" cache="false">
- <xts:param name="messageBase"><xts:queryValue select="/root/interfaces/interfaceInfo/param[@name='location']"/>/messages/cpsproducermsgs.xml</xts:param>
- <xts:param name="systemId">no-cache-id</xts:param>
- <xts:param name="src">
- <SOAP-ENV:Fault>
- <faultcode xmlns:wsrp="urn:oasis:names:tc:wsrp:v1:types">wsrp:OperationFailed</faultcode>
- <faultstring><xts:string id="IDS_PRO_WSF_NOTIMPLEMENTEDFAULT"/></faultstring>
- <detail>
- <wsrp:OperationFailed xmlns:wsrp="urn:oasis:names:tc:wsrp:v1:types"/>
- </detail>
- </SOAP-ENV:Fault>
- </xts:param>
- </xts:transform>
- </xsl:otherwise>
- </xsl:choose>
- </SOAP-ENV:Body>
- </SOAP-ENV:Envelope>
- </xos:entityBody>
- </xos:part>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- <xsl:template name="gen-param">
- <xsl:param name="name" select="@name"/>
- <xsl:param name="value" select="wsrp:value"/>
- <xsl:text><param name="</xsl:text>
- <xsl:value-of select="$name"/>
- <xsl:text>"></xsl:text>
- <xsl:value-of select="xtsext:xmlencode(string($value))"/>
- <xsl:text></param></xsl:text>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|