some webservices queries

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eshban
Forum Contributor
Posts: 184
Joined: Mon Sep 05, 2005 1:38 am

some webservices queries

Post 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
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: some webservices queries

Post 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)
Post Reply