Read ECC Queue payload
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2013 04:10 PM
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
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2013 09:32 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2013 10:17 PM
Thanks John!!!.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2013 10:06 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2013 06:26 AM
Sounds like the right kind of flow. I hope this works for you!