Where to find list of Packages.* supported by service now?

Kaushal283
Kilo Expert

In one of the service now application code, I found few package references as following: 

var httpclient = Packages.org.apache.commons.httpclient;
var httpPost = Packages.org.apache.commons.httpclient.methods.PostMethod;
var httpPut = Packages.org.apache.commons.httpclient.methods.PutMethod;
var httpDelete = Packages.org.apache.commons.httpclient.methods.DeleteMethod;

But how can I find these available methods inside Packages.*? There is no documentation about this. 

4 REPLIES 4

tomashrobarik
Giga Guru

You shouldn't be using them at all. They were abandoned like 4 years ago. Maybe you can find some usage in earlier comments, but since they are not supported don't even try to play with them. Use only documented API.

Thanks for the answer. But I'm using this script in MID server, and in MID server which documented API should I use? (I think Outbound service integration can't be used there in script)

SanjivMeher
Kilo Patron
Kilo Patron

Below link may be helpful

 

https://community.servicenow.com/community?id=community_question&sys_id=a2498725db5cdbc01dcaf3231f96...


Please mark this response as correct or helpful if it assisted you with your question.

The link is broken. Probably happened when everything was ported to the new platform.