Read ECC Queue payload

vicy
Kilo Explorer

Hello,

I have written a jar file uploaded on mid server. I am able pass message to write to ecc_queue and update problem object. Also, I am writing pay loads to ecc_queue every time problem is inserted or updated.

What I want to know if there is a way to read ecc_queue payload(xml data) using custom class that are part of jar file and parse the xml file.


Thanks
Vicky

6 REPLIES 6

john_andersen
Tera Guru

The easiest thing to do is create a javascript probe that submits the problem data to the MID Server. Have the Javascript Probe use a MID Server Script Include to parse the XML payload and push it through your JAR file.

Here is a helpful article on it:
http://www.john-james-andersen.com/blog/service-now/javascriptprobe-and-mid-server-script-includes.html


vicy
Kilo Explorer

Thanks John!!!.


vicy
Kilo Explorer

I have gone through the example that you have suggested and able to create files on my local system.

Just to clarify the steps that you are suggestion for using custom classes that I have written and deployed on midserver.

--Create a javascript probe on problem module(business rule as per the link you have suggested), through which I can pass .xml file to mid server include. And then within the execute method of mid server script include, I can instantiate my custom java classes(loaded on mid servers) and be able process the xml file.


Thanks for help


Sounds like the right kind of flow. I hope this works for you!