Comments on: Scripted Web Services https://servicenowguru.com/integration/scripted-web-services/ ServiceNow Consulting Scripting Administration Development Tue, 28 May 2024 21:06:32 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: mathew https://servicenowguru.com/integration/scripted-web-services/#comment-7404 Wed, 29 Jul 2015 14:53:14 +0000 https://servicenowguru.wpengine.com/?p=1930#comment-7404 Hi mark having issues in this line…..var StringUtil = GlideStringUtil;

I am using a scoped APP and GlideStringUtil is not valid in a scoped app?can you suggest ant workaround

]]>
By: toshit https://servicenowguru.com/integration/scripted-web-services/#comment-7403 Fri, 16 May 2014 13:36:59 +0000 https://servicenowguru.wpengine.com/?p=1930#comment-7403 In reply to Krutik Patel.

Hi Krutik,

I am also facing same issue. Did you get any resolution for the above problem?
Thanks in advance.

Regards,
Toshit Bhatt

]]>
By: Krutik Patel https://servicenowguru.com/integration/scripted-web-services/#comment-7402 Wed, 14 May 2014 02:20:42 +0000 https://servicenowguru.wpengine.com/?p=1930#comment-7402 Does anyone know how to control the order of the elements returned in the response of the SOAP message. I’ve provided our WSDL to a client who will be consuming it and they require the order of the output elements in the SOAP response same as the WSDL contract provided to the.

There is a order field which can be defined in the output parameters related list which helps to generate the WSDL contract in a particular order but the actual SOAP response doesn’t follow this order.

Any help would be appreciated.

Thanks

]]>
By: Bill Orebaugh https://servicenowguru.com/integration/scripted-web-services/#comment-7401 Wed, 23 Apr 2014 17:57:16 +0000 https://servicenowguru.wpengine.com/?p=1930#comment-7401 I’ve successfully implemented the Scripted Web Services plug-in and loaded your update set to fetch an attachment from our instance but I’m having trouble constituting the returned Base64 encoded “encodedAttachment” data to an actual file is usable. I have a couple of PNG images attached to an incident, am able to call the above and get the filename, tablename and encodedAttachment data but when I try to Decode the data and write it to a file on my local system it does not appear as a valid PNG image.

I’m using PowerShell with Msxml2.XMLHTTP to call the service and then using [System.Text.Encoding]::Unicode.GetString([System.Convert]::FromBase64String($encodedAttachment)); and a System.IO.StreamWriter to decode and write the data to disk.

Any guidance on how to get this encoded return value writeen in a usable form? I’m sure I’m just missing something simple (I hope).

]]>
By: Chris https://servicenowguru.com/integration/scripted-web-services/#comment-7400 Mon, 22 Jul 2013 20:02:27 +0000 https://servicenowguru.wpengine.com/?p=1930#comment-7400 It appears the fileattachment web service update set is missing the parameters.

I downloaded the xml zip and commited to my instance, the result was the scripted web service but it was missing the 1 input and 3 output parameters.

]]>
By: Akshat Chawla https://servicenowguru.com/integration/scripted-web-services/#comment-7399 Tue, 09 Jul 2013 09:45:42 +0000 https://servicenowguru.wpengine.com/?p=1930#comment-7399 Hi Mark,

I am creating a scripted web services in which i was query some table and it returns more than 1 record . I want to send all the return records in response so that to which I am sending the response extract that response and store all the records. I am able to send the 1 record in response.

Can you please help me out how to achieve this.

Thanks

]]>