Thank you, Evgeny. This is exactly what I am looking. Can I log the information to the event log using Non-Persistent approach?
Thanks
Raghu
- Log in to post comments
Thank you, Evgeny. This is exactly what I am looking. Can I log the information to the event log using Non-Persistent approach?
Thanks
Raghu
Thank you, Brendan. I am already doing this to find out what is the content type of incoming request.
Thanks
Raghu
Thanks for your help.
Thank you, Dmitry. Your direction helped me. I found the document that explains the %request object. So, in this case pInput parameter doesn't hold any info?
Thanks
Raghu
Dmitry,
That did not help. Let me phrase my question different way, by Default ContentType of a Rest business service is text/html, I want that to change to application/x-www-form-urlencoded. When my client posts the data as application/xml or text/xml. I am able to extract the stream from Input object. But when my client sends the contant type as application/x-www-form-urlencoded, in service class I am getting empty stream.
So I am trying to match the content type with the client.
Thanks
Raghu
Where do you suggest me to add that line? In any method or OnPreHttp() method?
Thank you for trying to help me. I am not looking to set the Response ContentType. I am trying to set accepted content type.
Thanks
Raghu
Thank you, Brendan. This is much simpler and clean way of doing. Appreciate your help.
Raghu
Thank you,Eduard. The problem is I have declared the variable within the template and it should be outside. I got it working now.
just an oversight...
Thank you for your help again :-)
Raghu
I have tried with value-of, still, returns the empty. I am thinking that the problem sending the values from classmethod to XDATA block.
Thanks
Thank you, Alexander. I went tried XSLT approach, it works when I have hard code the query in the xslt template but when I send the query has params I am not getting any result back. Do you have an example or code snippet that sends the query as params to the xslt?
Here is what I have tried.
ClassMethod GetNodeXSL(tData As %CacheString, tExperssion As %String, tIndex As %Integer) As %CacheString
{
#dim tParms As %ArrayOfDataTypes
set tParms = ##class(%ArrayOfDataTypes).%New()
do tParms.SetAt(tExperssion,1)
do tParms.SetAt(tIndex,2)
set tXSL=##class(%Dictionary.CompiledXData).%OpenId(..%ClassName(1)_"||GetNodeXSL").Data
set tSC=##class(%XML.XSLT.Transformer).TransformStream(tData,tXSL,.tOutput,,.tParms)
zwrite tSC
set tSC=tOutput.OutputToDevice()
Quit tOutput
}
XData GetNodeXSL
{
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<xsl:param name="tExperssion"/>
<xsl:param name="tIndex" />
<xsl:copy-of select="$tExperssion"/>
</xsl:template>
</xsl:stylesheet>
}
Test Command.
set t=##class(ISG.KAH.Devero.Utils.ToHorizonFunctions).GetNodeXSL(tData,"//DIAGNOSIS_DATA",1)
Thanks
Raghu
Hello Brendan,
Thank you for your response and pointing out the DEBUG. I got what I am looking .
Thanks
Raghu
Passthrough service will not show the HTTP RAW request. Does it?
Thank you for your response. Archive I/O will not capture the RAW Http Request it captures only the message request and response.
Thanks
Raghu
Thank you Brend for your response. I want to capture the output from REST operation, not service. I can't use any network capture tool as the data is encrypted. It's https.
Thanks
Raghu