/    Sign up×
Community /Pin to ProfileBookmark

PHP and Webservicesx

1) Check the below website [url]http://www.webservicex.net[/url]
2) What I need is to know how php can address a webservice and get information from xml files.
3) You can try currency converter webservice, or weather, or country codes.

[B][COLOR=”DarkRed”]“how to use php and XML in order to talk to webservices and get results.”[/COLOR][/B]

In other words, I want a php file that sends for example two variables (e.g. USD, EGP) to the xml webservice, and you get in a the next php file the results 5.514
Check the demo in this page, scroll down till you see the two fields [url]http://www.webservicex.net/WCF/ServiceDetails.aspx?SID=18[/url]

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@NogDogApr 13.2010 — [url=http://php.net/curl]cURL[/url] to send/receive data, and either [url=http://php.net/simpleXML]SimpleXML[/url] or [url=http://php.net/dom]DOM[/url] to handle the XML.
×

Success!

Help @john_zakaria spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...