01-10-2019
So this sounds like a POSTMAN configuration issue if that is the case.
Did you check the syslog files for clues?
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I am new to unix, but wanted to know how can we fetch data from a web page (i.e. an HTML Page), my requirement is to read an html page and wanted to create a flat file (text file) based on the contents available in the mentioned HTML page.
Thanks
Imtiaz (3 Replies)
Discussion started by: Imtiaz
3 Replies
2. UNIX for Dummies Questions & Answers
I'm a Unix and C programming newbie, and I've been tasked with calling a web service from a legacy Unix app... I've come across libxml2 and libsoup, gnome's libraries for XML/SOAP processing... But I'm seeking guidance on the development process... :o (0 Replies)
Discussion started by: jahooper
0 Replies
3. Shell Programming and Scripting
Hello to all,
What i would like to know is how to call a web service using perl.
Where can i find documentation that easy describes this procedure?
Any advices will be more tha welcome.
Thank you.
Best Regards,
Chriss_58 (3 Replies)
Discussion started by: chriss_58
3 Replies
4. Shell Programming and Scripting
Hello All,
I have to import data from xml file to mysql database multi-time a day. I think it is better to write a tool to help this. So I write a web service in php. I don't know that if we can call a web service via shell script. If it can, I think we can create a cron job to help run it... (2 Replies)
Discussion started by: hapytran
2 Replies
5. Solaris
Hi,
I have a Solaris 5.6 having an Oracle database.Now this server is being accessed by a web service interface.I cannot see anything other than httpd daemons running on my server. There is a frequent problem of the stopping of these httpd daemons . Now i am asked to find the root case.I talked... (1 Reply)
Discussion started by: asalman.qazi
1 Replies
6. UNIX for Dummies Questions & Answers
Hi everyone-
I'm relatively new to UNIX (Primarily Oracle background), wondering if anyone can help me.
I did not configure Oracle Database Control (Web-Based admin interface) on the Database Server (HP-UX), however it is running and the URL is configured with an internal IP, which users have... (4 Replies)
Discussion started by: campbellg
4 Replies
7. Shell Programming and Scripting
Hi,
I have a requirement to write web service in Perl CGi scripting.The web service will be called by some external programs.Any help would be appreciated.Sample hello world program will be more helpful.
Thanks,
Liyakath Ali. (1 Reply)
Discussion started by: liyakathali
1 Replies
8. Shell Programming and Scripting
Hi,
I would like to call the below perl web service from javascript .Any help would be appreciated.I am new to web services.Please do the needful.
Server Program(Perl Web Service)
#!/usr/bin/perl
use lib '/usr/lib/perl5/5.8.8/SOAP-Lite-0.65_3/lib';
use SOAP::Transport::HTTP;
use Demo;... (3 Replies)
Discussion started by: liyakathali
3 Replies
LEARN ABOUT DEBIAN
dancer::plugin::rest
Dancer::Plugin::REST(3pm) User Contributed Perl Documentation Dancer::Plugin::REST(3pm)
NAME
Dancer::Plugin::REST - A plugin for writing RESTful apps with Dancer
SYNOPSYS
package MyWebService;
use Dancer;
use Dancer::Plugin::REST;
prepare_serializer_for_format;
get '/user/:id.:format' => sub {
User->find(params->{id});
};
# curl http://mywebservice/user/42.json
{ "id": 42, "name": "John Foo", email: "john.foo@example.com"}
# curl http://mywebservice/user/42.yml
--
id: 42
name: "John Foo"
email: "john.foo@example.com"
DESCRIPTION
This plugin helps you write a RESTful webservice with Dancer.
KEYWORDS
prepare_serializer_for_format
When this pragma is used, a before filter is set by the plugin to automatically change the serializer when a format is detected in the URI.
That means that each route you define with a :format token will trigger a serializer definition, if the format is known.
This lets you define all the REST actions you like as regular Dancer route handlers, without explicitly handling the outgoing data format.
resource
This keyword lets you declare a resource your application will handle.
resource user =>
get => sub { # return user where id = params->{id} },
create => sub { # create a new user with params->{user} },
delete => sub { # delete user where id = params->{id} },
update => sub { # update user with params->{user} };
# this defines the following routes:
# GET /user/:id
# GET /user/:id.:format
# POST /user
# POST /user.:format
# DELETE /user/:id
# DELETE /user/:id.:format
# PUT /user/:id
# PUT /user/:id.:format
helpers
Some helpers are available. This helper will set an appropriate HTTP status for you.
status_ok
status_ok({users => {...}});
Set the HTTP status to 200
status_created
status_created({users => {...}});
Set the HTTP status to 201
status_accepted
status_accepted({users => {...}});
Set the HTTP status to 202
status_bad_request
status_bad_request("user foo can't be found");
Set the HTTP status to 400. This function as for argument a scalar that will be used under the key error.
status_not_found
status_not_found("users doesn't exists");
Set the HTTP status to 404. This function as for argument a scalar that will be used under the key error.
LICENCE
This module is released under the same terms as Perl itself.
AUTHORS
This module has been written by Alexis Sukrieh "<sukria@sukria.net>" and Franck Cuny.
SEE ALSO
Dancer <http://en.wikipedia.org/wiki/Representational_State_Transfer>
perl v5.14.2 2011-11-01 Dancer::Plugin::REST(3pm)