/    Sign up×
Community /Pin to ProfileBookmark

curl method for web serivce name

how to invoking PHP curl method on a server and the response will be XML type. Curl will save the output

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@chris0Oct 03.2011 — [code=php]
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://......./yourfile.xml");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
[/code]
Copy linkTweet thisAlerts:
@shajiuddinauthorOct 03.2011 — hi chris,

I need to fetch data from a web service name i-e 'GetPVForServiceProviders'

The web service contain secure urls and these urls are in 'xsd' format i-e 'http://www.abc.com/PaymentVoucher.xsd'

Code is like:

<PaymentVoucher xmlns="http://www.abc.com/PaymentVoucher.xsd">

<ErrorInfo>

<ErrorCode>Integer</ErrorCode>

<ErrorEnglish>String</ErrorEnglish>

<ErrorArabic>String</ErrorArabic>

</ErrorInfo>

</PaymentVoucher>

Can I use this kind of web service with PHP? if yes then what will be best way to use this web service because I have to send and receive data and save to mysql
×

Success!

Help @shajiuddin 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 6.15,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...