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

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