Skip to Content
0
Former Member
Aug 14, 2009 at 03:49 PM

Unique Session ID in XSLT

162 Views

Hello SND-ers,

Iu2019m having a little difficulty figuring out how to obtain the GUID or another unique session ID to place in field u2018SeqNumu2019. This XSLT creates a custom soap envelope around a payload and Iu2019m using this in an operation mapping in PI 7.1. I need to place a unique session ID in that u2018SeqNumu2019 field, but havenu2019t figured out how to do this yet. I didnu2019t know if there was a specific PI namespace that I could reference similar to the date/time example in the code below. Any help or guidance would be very much appreciated. Iu2019ve only included the top portion of the code to be clear in my request.

<xsl:stylesheet version="2.0"

xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:wsa="http://www.w3.org/2005/08/addressing"

xmlns:date="http://exslt.org/dates-and-times">

<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>

<xsl:variable name="Date" select="date:date()"/>

<xsl:variable name="Time" select="date:time()"/>

<! unique id for the session - this can be the existing session id or guid >

<xsl:param name="SeqNum" select=u201D<requestedvalue>u201D/>

I tried finding a reference library of some sort that may contain this information, but so far have been unsuccessful.

Thanks,

Jason

ps - as another side request, is it possible to pull the hostname or MAC address of the server to place that in the XSL as a dynamic value?

Edited by: Jason Ray on Aug 14, 2009 5:53 PM