Page 1 of 1

some webservices queries

Posted: Mon Aug 31, 2009 5:58 am
by eshban
Hi,

Regarding web services i have two questions:

1) What the purpose of WSDL FILE
2) In order to communicate with webservice is it compulsory that we need a WSDL FILE
3) Main question: I need to connect with a web service which sends results in an XML format. In order to do this which things i must needed.

waiting for reply

eshban

Re: some webservices queries

Posted: Mon Aug 31, 2009 2:50 pm
by Darhazer
WSDL means Web Service Description Language (or something similar)
It is a way to describe the web service. It contains the provided operations, as well as datatypes
You can make and use a service without WSDL, but it's like programming without interfaces, and even without classes, but with arrays of data instead. It's possible, but it's bad idea. And you will make the service harder for using by the clients and clients libraries.

As for the main question: obviously you need an XML parser for the result (SimpleXML is good choice). How you are sending the message (There are REST services where you only need to get an URL, and it returns the XML, and there are services like SOAP where you have to post xml in order to receive XML)