ebXML CPA Lookup

ebXML CPA Lookup does not output a unique service name, you must edit the ebCPALookup.xslt business process.

About this task

To edit ebCPALookup.xslt business process:

Procedure

  1. Search for the text “tp:Service.”
  2. Replace the following paragraph:
    <xsl:choose>

    <xsl:when test="$action!=''">

    <tp:ServiceBinding>

    <xsl:copy-of elect="tp:CollaborationRole/tp:ServiceBinding/tp:Service"/>

    <xsl:if test="($flag='outgoing' and tp:PartyId/text() = $partyId) or ($flag='incoming' and tp:PartyId/text() != $partyId)">

    <xsl:copy-of select="tp:CollaborationRole/tp:ServiceBinding/tp:CanSend[tp:ThisPartyActionBinding/@tp:action=$action] | tp:CollaborationRole/tp:ServiceBinding/tp:CanReceive/tp:CanSend[tp:ThisPartyActionBinding/@tp:action=$action]"/>

    </xsl:if>

    <xsl:if test="($flag='outgoing' and tp:PartyId/text() != $partyId) or ($flag='incoming' and tp:PartyId/text() = $partyId)">

    <xsl:copy-of select="tp:CollaborationRole/tp:ServiceBinding/tp:CanReceive[tp:ThisPartyActionBinding/@tp:action=$action] | tp:CollaborationRole/tp:ServiceBinding/tp:CanSend/tp:CanReceive[tp:ThisPartyActionBinding/@tp:action=$action]"/>

    </xsl:if>

    </tp:ServiceBinding>

    </xsl:when>

    <xsl:otherwise>

    <tp:ServiceBinding>

    <xsl:copy-of select="tp:CollaborationRole/tp:ServiceBinding/tp:Service"/>

    <xsl:if test="($flag='outgoing' and tp:PartyId/text() = $partyId) or ($flag='incoming' and tp:PartyId/text() != $partyId)">

    <xsl:copy-of select="tp:CollaborationRole/tp:ServiceBinding/tp:CanSend[tp:ThisPartyActionBinding/tp:ActionContext/@tp:binaryCollaboration=$binaryCollaboration and tp:ThisPartyActionBinding/tp:ActionContext/@tp:businessTransactionActivity=$businessTransactionActivity and tp:ThisPartyActionBinding/tp:ActionContext/@tp:requestOrResponseAction=$requestOrResponseAction] | tp:CollaborationRole/tp:ServiceBinding/tp:CanReceive/tp:CanSend[tp:ThisPartyActionBinding/tp:ActionContext/@tp:binaryCollaboration=$binaryCollaboration and tp:ThisPartyActionBinding/tp:ActionContext/@tp:businessTransactionActivity=$businessTransactionActivity and tp:ThisPartyActionBinding/tp:ActionContext/@tp:requestOrResponseAction=$requestOrResponseAction]"/>

    </xsl:if>

    <xsl:if test="($flag='outgoing' and tp:PartyId/text() != $partyId) or ($flag='incoming' and tp:PartyId/text() = $partyId)">

    <xsl:copy-of select="tp:CollaborationRole/tp:ServiceBinding/tp:CanReceive[tp:ThisPartyActionBinding/tp:ActionContext/@tp:binaryCollaboration=$binaryCollaboration and tp:ThisPartyActionBinding/tp:ActionContext/@tp:businessTransactionActivity=$businessTransactionActivity and tp:ThisPartyActionBinding/tp:ActionContext/@tp:requestOrResponseAction=$requestOrResponseAction] | tp:CollaborationRole/tp:ServiceBinding/tp:CanSend/tp:CanReceive[tp:ThisPartyActionBinding/tp:ActionContext/@tp:binaryCollaboration=$binaryCollaboration and tp:ThisPartyActionBinding/tp:ActionContext/@tp:businessTransactionActivity=$businessTransactionActivity and tp:ThisPartyActionBinding/tp:ActionContext/@tp:requestOrResponseAction=$requestOrResponseAction]"/>

    </xsl:if>

    </tp:ServiceBinding>

    </xsl:otherwise>

    </xsl:choose>

    with this paragraph:

    <xsl:choose>

    <xsl:when test="$action!=''">

    <tp:ServiceBinding>

    <tp:Service><xsl:value-of select="$service"/></tp:Service>

    <xsl:if test="($flag='outgoing' and tp:PartyId/text() = $partyId) or ($flag='incoming' and tp:PartyId/text() != $partyId)">

    <xsl:copy-of select="tp:CollaborationRole/tp:ServiceBinding/tp:CanSend[tp:ThisPartyActionBinding/@tp:action=$action] | tp:CollaborationRole/tp:ServiceBinding/tp:CanReceive/tp:CanSend[tp:ThisPartyActionBinding/@tp:action=$action]"/>

    </xsl:if>

    <xsl:if test="($flag='outgoing' and tp:PartyId/text() != $partyId) or ($flag='incoming' and tp:PartyId/text() = $partyId)">

    <xsl:copy-of select="tp:CollaborationRole/tp:ServiceBinding/tp:CanReceive[tp:ThisPartyActionBinding/@tp:action=$action] | tp:CollaborationRole/tp:ServiceBinding/tp:CanSend/tp:CanReceive[tp:ThisPartyActionBinding/@tp:action=$action]"/>

    </xsl:if>

    </tp:ServiceBinding>

    </xsl:when>

    <xsl:otherwise>

    <tp:ServiceBinding>

    <xsl:if test="($flag='outgoing' and tp:PartyId/text() = $partyId) or ($flag='incoming' and tp:PartyId/text() != $partyId)">

    <tp:Service><xsl:value-of

    select="tp:CollaborationRole/tp:ServiceBinding[tp:CanSend/tp:ThisPartyActionBinding/tp:ActionContext/@tp:binaryCollaboration=$binaryCollaboration and tp:CanSend/tp:ThisPartyActionBinding/tp:ActionContext/@tp:businessTransactionActivity=$businessTransactionActivity and tp:CanSend/tp:ThisPartyActionBinding/tp:ActionContext/@tp:requestOrResponseAction=$requestOrResponseAction]/tp:Service/text() |

    tp:CollaborationRole/tp:ServiceBinding[tp:CanReceive/tp:CanSend/tp:ThisPartyActionBinding/tp:ActionContext/@tp:binaryCollaboration=$binaryCollaboration and tp:CanReceive/tp:CanSend/tp:ThisPartyActionBinding/tp:ActionContext/@tp:businessTransactionActivity=$businessTransactionActivity and