Developing a Static wsdl with different Method in it

Paramahanns
Tera Expert

Hello All,

I have the static WSDL defined. Also I have the scripted webservice defined. Can some one give a example where some body developed integration using the scripted webservices and Static wsdl.

I created one but I am not sure I am doing it correctly.

I created a execute scripted web services. And in the static added more methods like insert, Update, Delete. But when I post a transaction the response is not   received. Also I am doing a mistake.

Can some one reply back with an example..

Introduction to Static WSDLs in ServiceNow | John Andersen

I looked into this got few of the things.. But since I am trying this new I need you help to get this completed.

Please respond.

REgards

Param

1 ACCEPTED SOLUTION

Thanks. I just managed to send the response in the Advanced Scripting of the Scripted web services section and I got the response.



Regards


Param


View solution in original post

15 REPLIES 15

Hi John Andersen,



Any help on this please. I am not sure if this is the correct way of adding multiple methods adding to the static wsdl. looking for your suggestions on this please.



Regards


Param


Param



From your screenshot it looks like the message is being received by SNOW but the response body you are sending back is empty. Can you share the script you are using in the Scripted web service? Are you setting a response in your script?


Hi Nick,



Thanks for your replies on this.. I just added the script this way and look like working. And this is in the scripted web services.



find_real_file.png




Now in the Scripted Main web services I have added the input and output static.. So just the insert will work. To make the get,getresponse,insert,insertreponse,delete, deleteresponse, update,updateresponse how can I make dynamic.



Thanks for your replies in advance. Do we need to call script includes if so how we pass the request and response parameters.



Regards


Param


Param,


It has been years since I have played with a scripted SOAP web service.   However, if my memory serves me correctly, I believe you have to parse the incoming XML request body in your script to determine the function being called.   Once you have the function, then you call the appropriate method in your scripted web service to perform the proper function.



Hope this helps,


John


John Anderson: Sure thanks for all you replies. I will start to try this from my side. If any body has some sample script for a single method please respond.



abhinay ,nick@digitain



Can you please get me a sample on how I can deal with input/output parameters. Then parse for single request and send back the same. A sample for single method would be great help.



Regards


Param