generating wsdl for table

habin
Kilo Contributor

Hi I'm stuck with a problem.

I have created a module "module_1" (like incident , problem) . Module contains only a table "table_1". I need to get the wsdl for this table, just like we get https://demo.service-now.com/incident.do?WSDL for incident . when I give https://demo.service-now.com/module_1.do?WSDL its giving an error :
Cannot generate WSDL for table 'table_1'.

Any help will be greatly appreciated.

- Habin

5 REPLIES 5

john_andersen
Tera Guru

You should be referencing the table name rather than the module name.

For example, instead of using the url:
https://demo.service-now.com/module_1.do?WSDL

You should try:
https://demo.service-now.com/table_1.do?WSDL

I don't know if this is your problem or not, but that is the first thing that I would try.

-John


Hi John,

Thank you for looking in to the issue.
I had also tried with https://demo.service-now.com/table_1.do?WSDL but the error was same:
"Cannot generate WSDL for table 'table_1'"

In the link ' http://wiki.service-now.com/index.php?title=Web_Services ' under Direct Web Services, its is said that : A direct web service is available for any table....

I just need to know, whether I have to do any configuration changes to make the wsdl active.

-Habin


It was a shot in the dark, I admint ;).

There are two suggestions I have for you:

1) Make sure that use are using the correct table name as it exists in the database. A common mistake is to create a table (eg. Table 1) and then try referencing the WSDL with "table_1.do". It is important to remember that by default the system will preface custom tables with a "u_", so you would need to reference "u_table_1.do".

2) Try doing the same steps on http://demo.service-now.com to see if it works. That system is out of the box, restored nightly. So, it is a clean system typically (the closer to any time after 3AM PST the cleaner it is). I just tried the scenario there and it works, so, if you try it and it doesn't work, it is safe to say you might be missing an important step or just doing something that causes a problem in the system.

Hopefully these two actions get you off on the right foot.

-John


Hi John,
Thanks a lot. The first suggestion worked. I was using table_1.do rather than u_table_1.do .

- Habin