LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-01-2011, 03:27 AM   #1
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
WSDL webservices


Hi all

Can i write a script that uses the WSDL so i can check on webservices??
I know little about this al, but i know that WSDL and SOAP are compatible with each other.
I need to check if the webservices are running or available

Can someone guide me in this?

Thanks in advance

Brownie
 
Old 06-01-2011, 03:59 AM   #2
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
Quote:
Originally Posted by brownie_cookie View Post
Hi all

Can i write a script that uses the WSDL so i can check on webservices??
I know little about this al, but i know that WSDL and SOAP are compatible with each other.
I need to check if the webservices are running or available

Can someone guide me in this?

Thanks in advance

Brownie
If I understand you correctly, you want a script that does a POST or a GET to a webservice and that it conforms to that webservice's wsdl, so that the correct SOAP request is sent to that webservice?
 
Old 06-01-2011, 04:25 AM   #3
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Original Poster
Rep: Reputation: 12
euh i geuss so xD
i really know little about it!
we've got here some webservices and they need to be checked
and i get a WSDL (some kind of XML) and it also had to do something with SOAP

so i geuss you're right
do you know of anything that i can use?

thanks in advance

brownie
 
Old 06-01-2011, 06:13 AM   #4
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
Quote:
Originally Posted by brownie_cookie View Post
euh i geuss so xD
i really know little about it!
we've got here some webservices and they need to be checked
and i get a WSDL (some kind of XML) and it also had to do something with SOAP

so i geuss you're right
do you know of anything that i can use?

thanks in advance

brownie
You can use the curl command, see this link.

This worked for an IIS Hosted web service:

Code:
curl --header 'content-type: text/xml' -d @soaprequest.xml http://myappserver.dev.com:8080/schedule.asmx
where soaprequest.xml is a file containing my SOAP request.

This obviously does not validate your SOAP request to the wsdl, if the wsdl is unlikely to change then I would validate it manually. You could also use XmlSpy.

What web server are you using? You can normally navigate to the web service page and get a sample SOAP request for each operation.

Hope this helps.


edit:

Are you thinking about wsdl validation because the wsdl changes or because you are unsure about whether the SOAP request you are sending is correct?

Last edited by manyrootsofallevil; 06-01-2011 at 06:15 AM.
 
1 members found this post helpful.
Old 06-01-2011, 06:19 AM   #5
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Original Poster
Rep: Reputation: 12
okay, when i've got time i'll check in to that, i've got other issues to handle first
but thanks for the info !!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
WSDL error kk2202 Red Hat 2 05-18-2009 11:09 PM
Can't access remote WSDL in Gentoo javpra Linux - Server 1 04-29-2009 12:58 PM
gcc - wsdl sharapchi Programming 1 11-23-2006 04:49 PM
PHP wsdl problem bahadur Programming 3 07-24-2006 12:22 PM
soap WSDL generator? Thinking Programming 0 09-21-2005 04:21 AM


All times are GMT -5. The time now is 07:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration