The CreatorCon Call for Content is officially open! Get started here.

SOAP Scripted webservice

chandran
Kilo Contributor

I have been trying to create the simple Scripted web service,   to use it in Outbound SOAP.

let say for example, if I pass a nodename in request, the reponse should have the text 'Nodename is reachable'

but not able to achieve as I got the below error when try to test from the outbound soap.

<SOAP-ENV:Fault>

                <faultcode>SOAP-ENV:Server</faultcode>

                <faultstring>com.glide.processors.soap.SOAPProcessingException: Insufficient rights to invoke script</faultstring>

                <detail>com.glide.processors.soap.SOAPProcessingException: Insufficient rights to invoke script</detail>

          </SOAP-ENV:Fault>

but if I use the example scripted webservice 'InstanceInfo' in outbound SOAP, able to test it successfully, got the response without any issues.

not sure what is missing, I assigned all Soap roles to my userid. is it something wrong with the scripted webservice?

can anyone please help me. possible please share the script for scripted webservice.

Thanks,

Chandran

10 REPLIES 10

Prasun
Giga Guru

Hi,



Please provide web_service_admin role and then try.



Please mark correct if helps.


chandran
Kilo Contributor

Tried with tat option but Still the same issue


Hi Chandran,



glide.soap.strict_security is turned on by default in instance so for doing scripted services you would need soap_script role. Apart from this, you can also check if you are having the soap access to table or operation access to the table


Prasun
Giga Guru

the inbound and outbound both are servicenow instances?