Question
· Jul 19, 2023

Request content does not appear in the message viewer.

Hello community,

I am developing a call that contains some properties in an Ens.Request class like this:

Class Linx.Omni.Operation.Apigee.Fidelidade.Msg.ProcessaVendaReq Extends Ens.Request
{

Property Bandeira As %String(MAXLEN = "");
Property CodigoLoja As %String(MAXLEN = "");
Property CpfCliente As %String(MAXLEN = "");
Property ListaItens As list Of Linx.Omni.VO.Origem.Fidelidade.ProcessaVendaFidelidadeNew;
Storage Default
{
...

I am creating a new request and calling it as follows (I removed some code snippets for better visualization):

Method ChamaProcessaVendaFidelidadeNew(pRequest As Linx.Omni.Process.Msg.ComponenteRegraReq, Output pStream) As %Status [ Private ]
{
	Set tStatus = $System.Status.OK()
	
	Try
	{		
            ...
			else
			{	
				Set tRequest = ##Class(Linx.Omni.Operation.Apigee.Fidelidade.Msg.ProcessaVendaReq).%New()				
				Set tRequest.Bandeira              = tParamBandeira.Valor
				Set tRequest.CodigoLoja            = tObjOrigem.CodigoLoja
				Set tRequest.CpfCliente            = tObjOrigem.CpfCliente
				
				For x=1:1:tObjOrigem.ListaItens.Count()
				{
					Set tObjItem = ##Class(Linx.Omni.VO.Origem.Fidelidade.ProcessaVendaFidelidadeNew).%New()
					
					Set tObjItem.Codigo     = tObjOrigem.ListaItens.GetAt(x).Codigo
					Set tObjItem.Quantidade = tObjOrigem.ListaItens.GetAt(x).Quantidade
					Set tObjItem.Valor      = tObjOrigem.ListaItens.GetAt(x).Valor
					
					Set tStatus = tRequest.ListaItens.Insert(tObjItem)
				}
												
				If $System.Status.IsError(tStatus)
				{
					Throw
				}
				
				Set tStatus = ..SendRequestSync("Venda Fidelidade WS", tRequest, .tResponse)
				
                ...
			}
		}
		Set pStream = tObjProxy
	}
	Catch tException
	{
		#Dim tException As %
		If '$System.Status.IsError(tStatus)
		{ 
			Set tStatus = tException.AsStatus()
		}
	}

	Quit tStatus
}

 

The result in the administration portal is an empty content.

Here's an example of how it should be:

 

I have reviewed the code several times and couldn't identify what I might be doing wrong. On other occasions, I followed the same procedure and it worked. Can someone help me?

Product version: Ensemble 2018.1
Discussion (7)1
Log in or sign up to continue

I would like to know a little more about this.

I was just working on something where my business process put together a custom object based on a file from the record mapper.  The object is simply saved to the database so just to put a bow on it we send a request to a "FinishedOperation" business operation which doesn't do anything.  The request is sent async and the request object is the instance of the custom object was created/updated.  

This request object has a few properties that are object properties and one is XML enabled the other is not.  They both show up in the body of the message trace there's nothing in the content tab of the message trace.

How come they show up when they aren't XML enabled? What am I not understanding in terms of the difference between the body and the contents?

Thanks!