473,387 Members | 1,573 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Can I use php to talk with a web service ?

Hello all,

Can I use php to talk with a web service ?

I need to talk with a web service.. I'm programming with php for about 7
months now.. but in fact I have no idea about using it with web services..

any information & resources are very appreciated
thanks to all
Jul 17 '05 #1
5 2513
>Can I use php to talk with a web service ?

It depends on what you are trying to access.
At the most basic level, a web service is nothing more than a formatted response. (usually as an xml stream).

If you can pass commands to a uri and parse the results, you have developed a basic
web service consumer.

soap, wddx, whatever...

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
Wil Moore III, MCP Site : www.quicksitedesign.com?em
Application Developer Site : www.digitallysmooth.com?em
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
Jul 17 '05 #2
Amr Mostafa a écrit le 20/01/2004 :
Hello all,

Can I use php to talk with a web service ?

I need to talk with a web service.. I'm programming with php for about 7
months now.. but in fact I have no idea about using it with web services..

any information & resources are very appreciated
thanks to all


Use fsockopen() and act as a client browser or study the web service
you'd like to talk to, maybe a built URI containing vars would do the
trick.
Jul 17 '05 #3
Amr Mostafa wrote:
Can I use php to talk with a web service ?

I need to talk with a web service.. I'm programming with php for about 7
months now.. but in fact I have no idea about using it with web services..


There's a book by WROX called "PHP Web Services" that has helped me a
bunch in getting started, but depending on your needs you might get by
with any of the following resources:

SOAP:

http://dietrich.ganx4.com/nusoap/index.php
Dietrich Ayala | NuSOAP

http://pear.php.net/package/SOAP
PEAR :: Package :: SOAP

XML_RPC:

http://xmlrpc.usefulinc.com/
usefulinc.com: XML-RPC

http://www.zend.com/zend/tut/tut-xml-rpc-client.php
XML- RPC Client

http://phpxmlrpc.sourceforge.net/
XML-RPC for PHP

http://www.phpbuilder.com/columns/luis20010329.php3
PHPBuilder.com - The web of services: using XML_RPC from PHP

http://php.weblogs.com/xml-rpc
PHP Everywhere: Creating Web Services with PHP using XML-RPC

http://pear.php.net/package/XML_RPC
PEAR :: Package :: XML_RPC

Jochen
Jul 17 '05 #4
thanks a lot for your help,

I will deal with a .NET web service ..

After the links you provide. i think NuSoap will do the job for me
( correct me if I'm wrong please )
thank you && best regards,
amr
Jul 17 '05 #5
Amr Mostafa wrote:
I will deal with a .NET web service ..


I have no experience with .NET, so I don't know what protocol it uses.
The only ones that I have used for web services so far are SOAP (Simple
Object Access Protocol) and XML-RPC (XML Remote Procedure Call), both
XML based. Consult the documentation of the web service to see if it
provides either interface. If not, you're on your own.

Jochen
Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Amy Lewis | last post by:
I recently moved my Windows 2003 server from one domain into another. After the move I have noticed that some of my .asp pages won't load. I get a server 500 error. When I look in the event log...
10
by: noname | last post by:
MSDE 2000 Release A installed under windows 2000 pro will not communicate with SQL Server Manager nor MS Access on peer computer. Can someone help? Have set DISABLENETWORKPROTOCOLS=0 at install...
8
by: Dave | last post by:
This may be a simple question, but I'm new to .NET and not having much luck finding out the answer. I'm writing a Windows Service and want to develop a separate program that provides a user...
4
by: gregsands | last post by:
Hi I have read all (ok most) of the posts relating to "Call to undefined function mysql_connect()", read the manual on PHP.net and done eveything thats ive been asked to do but cant get PHP to...
6
by: GG | last post by:
Currently we have clientMail.dll in dot net. All the dot net exes use it to send e-mail. However, the above will not work with mcafee 8 unless adding into the exceptions all the apps exe. I would...
2
by: Jarmo | last post by:
I have a Java-based (Axis) Web Service and am trying to write a .NET client in C#. I run into two different problems. 1. if the WSDL was generated using the Axis defaults then .NET cannot update...
1
by: Michael Herman \(Parallelspace/OpenCanal\) | last post by:
We're creating a Windows Service with the .NET Framework (.NET 1.1 and VS 2003) and have an obvious requirement to send commands and data to control the Windows Service. In the Windows Service,...
14
by: c676228 | last post by:
Hi everyone, Our site is down, because of our hosting company applied sql server 2000 sp4 on windows 2000 server. right after it applied the service pack, our sql server database is down and...
1
by: Larry Bud | last post by:
Customer sends XML data to our Web Service. Web Service does some data transformation and puts the data into a special format that another application uses. That data is in a file. This other...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.