Handling gziped data in scripted SOAP web services is possible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2025 04:48 AM - edited ‎01-02-2025 04:50 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2025 06:05 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2025 06:54 AM
Hi @Ankur Bawiskar so oob there is no solution to handle gzip'ed data for both REST and SOAP?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2025 07:31 AM
What needs to be done when the gzip file is received?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2025 08:03 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader