LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-16-2014, 12:39 AM   #1
zak100
Member
 
Registered: Jul 2009
Posts: 262

Rep: Reputation: 2
Unable to connect with web service


Hi,
I am trying to run a program which i have downloaded from net:
Code:
[lab6@localhost Sir]$ perl soap2.pl
500 Can't connect to services.xmethods.net:80 (Bad hostname) at soap2.pl line 6.
[lab6@localhost Sir]$
The code is:

Code:
use strict;
use SOAP::Lite;
my $service = new SOAP::Lite
-> uri('urn:xmethods-Temperature')
-> proxy('http://services.xmethods.net/soap/servlet/rpcrouter');
my $result = $service->getTemp(SOAP::Data->type(string=>'08736'));

unless ($result->fault) {
print $result->result();
}
else {
print join ',',
$result->faultcode,
$result->faultstring,
$result->faultfactor,
$result->faultdetail;
}
Can somebody tell me about some other service which is currently available. Please guide me.

Zulfi.
 
Old 09-16-2014, 12:59 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Why not search for them using the key words web service. There are a few listed here.
jdk
 
Old 09-16-2014, 02:15 AM   #3
zak100
Member
 
Registered: Jul 2009
Posts: 262

Original Poster
Rep: Reputation: 2
Hi,
Thanks for your help. Sorry, I cant find any web service in your link. However when i searched i got:
Code:
 http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL
It says WSDL. I am using soap. How to invoke this web service from my code?

Zulfi.
 
Old 09-16-2014, 11:43 PM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by zak100 View Post
Hi,
Thanks for your help. Sorry, I cant find any web service in your link. However when i searched i got:
Code:
 http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL
Zulfi.
Aren't these web services?
Web services that use markup languages

Quote:
There are a number of web services that use markup languages:

JSON-RPC
JSON-WSP
Web template
Web Services Description Language (WSDL) from the W3C
XML Interface for Network Services (XINS) provides a POX-style Web service specification format
Web Services Conversation Language (WSCL)
Web Services Flow Language (WSFL) (superseded by BPEL)
WS-MetadataExchange
Representational state transfer (REST) versus remote procedure call (RPC)
XML-RPC - XML - Remote Procedure Call
jdk
 
Old 09-17-2014, 03:15 AM   #5
zak100
Member
 
Registered: Jul 2009
Posts: 262

Original Poster
Rep: Reputation: 2
Hi,
Thanks for your reply. Please provide me an example how to use a web service in the program.

Zulfi.
 
Old 09-17-2014, 10:23 AM   #6
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by zak100 View Post
Hi,
Thanks for your reply. Please provide me an example how to use a web service in the program.

Zulfi.
Why not read the manuals and do that yourself? You can always post a question here if the instructions are not clear. You might as well learn to do it yourself, right?
jdk
 
Old 09-17-2014, 11:58 AM   #7
zak100
Member
 
Registered: Jul 2009
Posts: 262

Original Poster
Rep: Reputation: 2
Hi,
Thanks for your advice. I believe that Forums are also a great source of learning. Along with this google search can also provide valuable material. I bought 3 books for learning Web Services. First i tried to install it on Windows but it didnt work but then i was able to install it on Fedora. But I cant run any program. You know learning in programming context starts when you are able to run the 1st program. I am still not able to succeed in this. That's why i have posted on this forum.
Zulfi.
 
Old 09-17-2014, 12:18 PM   #8
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
That's all very well but sentences like this:
Quote:
First i tried to install it on Windows but it didnt work
and this
Quote:
then i was able to install it on Fedora
and finally this
Quote:
But I cant run any program.
are not informative and give us no clue about what you did and how your system responded to your actions. If you can tell us what web service program you installed on Fedora and how you installed it. If you can tell us what commands you used to run the program what error messages those commands caused, then someone might have an idea about what your problem is and how to solve it. As things stand now, it remains a complete mystery.
jdk
 
Old 09-18-2014, 12:22 AM   #9
zak100
Member
 
Registered: Jul 2009
Posts: 262

Original Poster
Rep: Reputation: 2
Hi,
Thanks. Please tell me what other information you need in this particular thread. I have shown you the code, the command which i used to compile and the error which is generated. Kindly guide me what else you need in this regard.

Zulfi.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] unable to connect o MySQL using PHP via web browser??? cyberdome Fedora 18 03-14-2014 12:14 AM
CentOS 5.5 box unable to access a live web service on the Interwebs gr33d Linux - Networking 4 10-27-2010 04:36 PM
Web Load Balancing (apache+heartbeat+ldirector) : Unable to connect to real servers dipakbiswal Linux - Networking 1 11-08-2009 04:34 AM
Unable to connect properly to local web server from Gentoo Gethyn Linux - Networking 3 09-25-2006 04:04 PM
MNF2 : unable to connect to Web Interface MandrakeSecurity + X server install error syxys Mandriva 3 12-30-2004 12:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration