Skip to main content

Has anyone succesfully built an Endpoints Webservice, Service Instance to a ServiceNow instance? 

 

ServiceNow accepts inbound requests by SOAP (also REST, but a K2 technical consultant confirmed that ServiceNow was not OData compaibile so I'm stuck trying to make SOAP work). 

 

Here is the SOAP API documentaion http://wiki.servicenow.com/index.php?title=SOAP_Direct_Web_Service_API

 

I have created the Service Instance using basic Auth, the default values and the correct URL.

 

14680i85D7869A22172AAB.png

 

Can anyone help me from here? From tial and error I think I have to run an ObjectTypes smartobject, then take the serializes string which is returned and use that in a ServiceNow_sys_user Objects smartobject. But doing so returns empty fields.  For example I run "get" with a required sys_id. this returns a serialzed string and I paste that string into "get(get get1)" which takes a serialized string as a required input. 

 

Any help or advice will be appreciated. 

 

If am understanding your screen shot correctly they you are doing it the correct order. You would use the Object Types first to create the complex object that you would intern take the serialized output and feed the actual method you are calling.

 

Have you taken the output from the Get object type and looked at it in XML to see if everything looks correct? I would then manually cut and paste that in the SMO Tester tool and test the method that takes a get object as an input.

 

 


SOLVED

 

I received a call from K2 and I was advised to try adding the parameter &elementFormDefault=qualified to the WebService URL. 

https://<corporateinstance>.service-now.com/<tablename>.do?&elementFormDefault=qualified

The process was correct and I now receive field values instead of empty fields. 


Reply