LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   WSDL webservices (https://www.linuxquestions.org/questions/linux-newbie-8/wsdl-webservices-883890/)

brownie_cookie 06-01-2011 03:27 AM

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

manyrootsofallevil 06-01-2011 03:59 AM

Quote:

Originally Posted by brownie_cookie (Post 4372805)
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?

brownie_cookie 06-01-2011 04:25 AM

euh :p 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

manyrootsofallevil 06-01-2011 06:13 AM

Quote:

Originally Posted by brownie_cookie (Post 4372854)
euh :p 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?

brownie_cookie 06-01-2011 06:19 AM

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 !!!


All times are GMT -5. The time now is 11:19 AM.