Sponsored Content
Top Forums Shell Programming and Scripting How to call perl web service from javascript? Post 302726641 by liyakathali on Monday 5th of November 2012 06:17:04 AM
Old 11-05-2012
How to call perl web service from javascript?

Hi,

Can you please provide me sample javascript client code to access the below server side code:

Code:
#!/usr/bin/perl
use lib '/usr/lib/perl5/5.8.8/SOAP-Lite-0.65_3/lib';
use SOAP::Transport::HTTP;
use Demo;
  SOAP::Transport::HTTP::CGI
    -> dispatch_to('Demo')
    -> handle;

Thanks,
liyakath.

---------- Post updated at 07:17 AM ---------- Previous update was at 04:32 AM ----------

hi,

When I execute the below server side perl program I am getting HTTP status 411: Length Required Error.

Code:
#!/usr/bin/perl
use lib '/usr/lib/perl5/5.8.8/SOAP-Lite-0.65_3/lib';
use SOAP::Transport::HTTP;
use Demo;
  SOAP::Transport::HTTP::CGI
    -> dispatch_to('Demo')
    -> handle;

Do i need to make any change in the above program?Any help would be appreciated.

Thanks,
Liyakath.

Last edited by Franklin52; 11-05-2012 at 07:19 AM.. Reason: Code tags, please...
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Need to Call Web Service from Unix

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

2. Shell Programming and Scripting

How to call a web service using perl

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

3. Shell Programming and Scripting

Call web service from Shell

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

4. Web Development

chrome window.parent call javascript func fail

Hi Everyone, Please refer to attached test.zip. Open a.htm, tested under IE, Safari, Firefox no problem, but ONLY google chrome fail, seems cannot use call parent javascript function under the child iframe. Please advice. Thanks (1 Reply)
Discussion started by: jimmy_y
1 Replies

5. Shell Programming and Scripting

web service call: curl output to xsltproc input

I need to invoke a web service and extract what I need from the response using a combination of curl and xsltproc. However, any file-based parameters that must be supplied to both these programs must be from stdin and not actual files. At least with curl, it seems to think that I am supplying a... (3 Replies)
Discussion started by: webuser
3 Replies

6. Shell Programming and Scripting

Web Service in Perl CGI 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

7. Shell Programming and Scripting

Working web service call not working with curl

Hello, Newbie here, I have a perfectly well working web service call I can issue from chrome (PC Windows 10) and get the results I want (a dimmer being turned on in Fibaro Home Center 2 at level 40) I am not allowed to post urls but the below works with http and :// and... (3 Replies)
Discussion started by: abigbear
3 Replies
SOAP::Transport::POP3(3pm)				User Contributed Perl Documentation				SOAP::Transport::POP3(3pm)

NAME
SOAP::Transport::POP3 - Server side POP3 support for SOAP::Lite SYNOPSIS
use SOAP::Transport::POP3; my $server = SOAP::Transport::POP3::Server -> new('pop://pop.mail.server') # if you want to have all in one place # -> new('pop://user:password@pop.mail.server') # or, if you have server that supports MD5 protected passwords # -> new('pop://user:password;AUTH=+APOP@pop.mail.server') # specify list of objects-by-reference here -> objects_by_reference(qw(My::PersistentIterator My::SessionIterator My::Chat)) # specify path to My/Examples.pm here -> dispatch_to('/Your/Path/To/Deployed/Modules', 'Module::Name', 'Module::method') ; # you don't need to use next line if you specified your password in new() $server->login('user' => 'password') or die "Can't authenticate to POP3 server "; # handle will return number of processed mails # you can organize loop if you want do { $server->handle } while sleep 10; # you may also call $server->quit explicitly to purge deleted messages DESCRIPTION
COPYRIGHT
Copyright (C) 2000-2001 Paul Kulchenko. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. AUTHOR
Paul Kulchenko (paulclinger@yahoo.com) perl v5.12.4 2011-08-18 SOAP::Transport::POP3(3pm)
All times are GMT -4. The time now is 10:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy