I am getting error while trying to POSt data to servicenow instance using REST API (Table API)

Artemis15
Kilo Guru

I am using the same code to develop a program to post data to snow demo instance.

 

URL : http://wiki.servicenow.com/index.php?title=Table_API_Java_Examples#POST

 

I'm getting status 404 and stream closed error.

 

find_real_file.png

 

Please help me in this issue.

1 ACCEPTED SOLUTION

Artemis15
Kilo Guru

Thanks Kalaiarasan and Chandan for your valuable reply.



I found out the mistake in the code. It's because of a jar file which is accidentally closing the buffer before connecting to SNOW instance.


View solution in original post

15 REPLIES 15

Hi Sumukh,



I removed all the jars and load new version of them.



Could you please provide me more details on this as this may be the reason b'coz of proxy server.


Here, I'm attaching the code as well as jar name, this works for me. I hope this would help you.


Hi,



Im trying to get Incident data from a java program by using REST Web services. I have tried with sample code given in Wiki. But its not working. could you please share a working code if you have any ?



Regards,


Hima Pallela


Artemis15
Kilo Guru

HI Hema,



I have already attached the sample code.


If you want to retrieve the information as well, than I can provide that code to you as well.



One thing, Are you behind any proxy?



--


Cheers,


AR


Hi Akash,



One of the Java Developer reached me for Servicenow integration with Java. i have provided the sample code given in wiki. They are accessing it from my company network & getting error "unknown host exception". Then now im trying to execute the same code   in my personal laptop, im getting different kind of error. Any help will be appreciated.



Regards,


Hima Pallela


issue is b'coz of proxy.



In my previously attached example, you will find how to add proxy.



If still facing the issue, contact me.



--


Cheers,


AR