Handling gziped data in scripted SOAP web services is possible?

Suggy
Giga Sage

We have a scripted soap web service created.

Extenal tool wants to send gziped data to this. Is it automatically handled or should we de-compress using any script?

10 REPLIES 10

Ankur Bawiskar
Tera Patron
Tera Patron

@Suggy 

ServiceNow OOB doesn't have any class to unzip gzip files.

So if you wish to unzip you will have to use some other custom solution. If you simply wish to attach that file then fine.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi @Ankur Bawiskar  so oob there is no solution to handle gzip'ed data for both REST and SOAP?

@Suggy 

What needs to be done when the gzip file is received?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Suggy 

if your requirement is that 3rd party will send gzip file and you want to extract files and attach to some record etc then this is not possible OOB.

If your requirement is to attach that file then it's possible in scripted rest api script

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader