[PHP] PHP Web Services

2003-12-04 Thread Jamie Anderson
Hello,

I am wondering if it is possible to create web services using php?  If so,
where would I go to find some resources about it?

Thanks

Jamie

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Web Services

2003-12-04 Thread Richard Davey
Hello Jamie,

Thursday, December 4, 2003, 10:45:17 PM, you wrote:

JA I am wondering if it is possible to create web services using php?  If so,
JA where would I go to find some resources about it?

This one isn't bad:
http://www.nusphere.com/products/library/webservices_whitep_012502.pdf

-- 
Best regards,
 Richardmailto:[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Web Services

2003-12-04 Thread Matt Matijevich
snip
I am wondering if it is possible to create web services using php?  If
so,
where would I go to find some resources about it?
/snip

try google
GIYF
http://www.google.com/search?q=web+services+using+phpsourceid=mozilla-searchstart=0start=0ie=utf-8oe=utf-8

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Web Services

2003-07-04 Thread Yamin Prabudy
Hi there,
hope someone ini this list can help me out..

I had made a web services using Keith Devens library
It's already run and OK...

Now I try to make a client using ASP .NET to connect to my web services

Did anyone know how to pull out the classes/function in my web services with
kd_xmlrpc ??
like the google if we try to used the web services server we can see all the
available function/class


Thanks in Advance

yamin
- Original Message - 
From: Boaz Yahav [EMAIL PROTECTED]
To: David R [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, July 04, 2003 4:39 PM
Subject: RE: [PHP] cookie question


Go to your browsers setting and ask the browser to prompt before setting
cookies.
in IE go to : tools - Internet Options - Privacy -- Advanced --
Override automatic cookie handling.

See if your page tries to set the cookie at all.
If not, try to add : error_reporting(2039);
maybe you are sending the headers before you set the cookie.

Sincerely

berber

Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.


-Original Message-
From: David R [mailto:[EMAIL PROTECTED]
Sent: Friday, July 04, 2003 11:25 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] cookie question


I tried it that way, and variations on it. I still have had no luck. Any
other ideas? Thanks again David R Thanks for you he Boaz Yahav
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Try

setcookie(auth,$val,time() + 3600,/,.avenew.com);


also look here : http://examples.weberdev.com/get_example.php3?count=67

Sincerely

berber

Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.


-Original Message-
From: David R [mailto:[EMAIL PROTECTED]
Sent: Friday, July 04, 2003 9:44 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] cookie question


I have never read anything about a production server domain. How do I
set the cookie for it? Thanks. David R


Leif K-Brooks [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 David R wrote:

 Hello,
 I have a cookie question.
 
 I have the following code is a file called tc.php
 
 ?
 global $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $settings, $sql ;
 $val=123;
 setcookie (auth, $val , time() + 3600);
 $cookie = $HTTP_COOKIE_VARS['auth'];
 echo cookie is: $cookie;
 ?
 
 I have no problem retrieving the value cookie value ( 123 ) on my
 local machine but when I post to the internet I can't get the cookie
 value.
 
 Any ideas why?
 
 Did you set the cookie for the production server domain?  Cookies for
 your local machine won't still be there once you upload, you know.

 --
 The above message is encrypted with double rot13 encoding.  Any
unauthorized attempt to decrypt it will be prosecuted to the full extent
of the law.





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Web Services

2003-07-04 Thread Sid
You will need to write a script in PHP to output XML data from the data you
currently have in your db/files.

Hope this helps

- Sid
- Original Message -
From: Yamin Prabudy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 04, 2003 1:48 AM
Subject: [PHP] Web Services


 Hi there,
 hope someone ini this list can help me out..

 I had made a web services using Keith Devens library
 It's already run and OK...

 Now I try to make a client using ASP .NET to connect to my web services

 Did anyone know how to pull out the classes/function in my web services
with
 kd_xmlrpc ??
 like the google if we try to used the web services server we can see all
the
 available function/class


 Thanks in Advance

 yamin
 - Original Message -
 From: Boaz Yahav [EMAIL PROTECTED]
 To: David R [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Friday, July 04, 2003 4:39 PM
 Subject: RE: [PHP] cookie question


 Go to your browsers setting and ask the browser to prompt before setting
 cookies.
 in IE go to : tools - Internet Options - Privacy -- Advanced --
 Override automatic cookie handling.

 See if your page tries to set the cookie at all.
 If not, try to add : error_reporting(2039);
 maybe you are sending the headers before you set the cookie.

 Sincerely

 berber

 Visit http://www.weberdev.com/ Today!!!
 To see where PHP might take you tomorrow.


 -Original Message-
 From: David R [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 04, 2003 11:25 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] cookie question


 I tried it that way, and variations on it. I still have had no luck. Any
 other ideas? Thanks again David R Thanks for you he Boaz Yahav
 [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 Try

 setcookie(auth,$val,time() + 3600,/,.avenew.com);


 also look here : http://examples.weberdev.com/get_example.php3?count=67

 Sincerely

 berber

 Visit http://www.weberdev.com/ Today!!!
 To see where PHP might take you tomorrow.


 -Original Message-
 From: David R [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 04, 2003 9:44 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] cookie question


 I have never read anything about a production server domain. How do I
 set the cookie for it? Thanks. David R


 Leif K-Brooks [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  David R wrote:
 
  Hello,
  I have a cookie question.
  
  I have the following code is a file called tc.php
  
  ?
  global $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $settings, $sql ;
  $val=123;
  setcookie (auth, $val , time() + 3600);
  $cookie = $HTTP_COOKIE_VARS['auth'];
  echo cookie is: $cookie;
  ?
  
  I have no problem retrieving the value cookie value ( 123 ) on my
  local machine but when I post to the internet I can't get the cookie
  value.
  
  Any ideas why?
  
  Did you set the cookie for the production server domain?  Cookies for
  your local machine won't still be there once you upload, you know.
 
  --
  The above message is encrypted with double rot13 encoding.  Any
 unauthorized attempt to decrypt it will be prosecuted to the full extent
 of the law.
 
 



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] web services

2003-03-22 Thread Alexandru COSTIN
Hello,

 Hi Guys,

 I want to create webservices using NUSoap + PHP. I have gone through
NUSoap
 Site at http://dietrich.ganx4.com/nusoap/faq.php but havenot found any
thing
 to start with. Can any body point me to some good examples + Manuals on
the
 matter.

 PHP  Webservices sounds promising and i think using NUSoap is the best
 alternative at present. Does any one have better ideas ?

You will find our open source Krysalis platform interesting for PHP web
services.

http://www.interakt.ro/products/Krysalis/


You can also read my chapter for the Wrox (it's bancrupcy is a major
losss..) Professional PHP Web Services at
ftp://www.interakt.ro/pub/Krysalis/Professional%20web%20services%20with%20Kr
ysalis.pdf

We hope that this will give you a healthy start.

Krysalis does not include an API like (SOAPx4 or NuSOAP), but is based on
XML streaming and transformation, ans you will see an alternative of using
SOAP for other goals than RPC.

Alexandru



 Thanks and Regards,
 Nikunj Virani

--
Alexandru COSTIN
Chief Operating Officer
http://www.interakt.ro/
+4021 411 2610



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] web services

2003-03-21 Thread David Otton
On Fri, 21 Mar 2003 22:49:05 +0100, you wrote:

I am currently trying to understand how to place content on a different site
without giving away my code. SOAP seems to be the solution. I am absolutly

First off, I have to say this is a social problem, not a technical one.
If you're worried about the theft of your code (and, to be honest, most
code is worthless anyway), tackle it with a contract, not a hack.

new to web services. What I did understand so far is that it is basicly
pritty simple to transfer some data like a currency exchange rate over the
web service. But how about a complete web portal? Connected to the same DB,

SOAP is simply a mechanism for calling functions that may be hosted on
other computers. It's useful because it's a standard, and it goes
through firewalls. Divide your application's functions down the middle,
and decide which will be on machine A and which on machine B.

But be warned, this will be /slow/, less reliable and more complex to
write. This goes for any kind of RPC, not just SOAP, especially with PHP
(lack of threads, no native support).

the php files hosted on my server, but the application served by a different
server. Like co branding the portal. Is this possible as well?

Yes it's possible. Think of it like this... you currently have a
database layer, right? All the bits of code that talk to the database
are out in a seperate file or class? That's the part that you'd probably
move to a seperate computer, and would call via SOAP.

Maybe someone can point me into the right direction.

NuSOAP? .NET? Java?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] web services

2003-03-21 Thread Steve Magruder
David Otton [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 On Fri, 21 Mar 2003 22:49:05 +0100, you wrote:

 I am currently trying to understand how to place content on a different
site
 without giving away my code. SOAP seems to be the solution. I am
absolutly

 First off, I have to say this is a social problem, not a technical one.
 If you're worried about the theft of your code (and, to be honest, most
 code is worthless anyway), tackle it with a contract, not a hack.

Too many people use contracts like toilet paper... just my experience, for
what it's worth.

Steve



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] web services

2003-03-21 Thread Darren Young
I seem to remember reading somewhere about compiling PHP pages to
'bytecode' thus removing the need to distribute the source PHP pages.
I'm going to have the need down the road to distribute a PHP based app
to others and am curious about the same hiding code issues. I'm not
all that worried about people stealing code, but more making local
modifications when they're not supposed to. I know I could simply
protect the pages on the *NIX machines via decent file system
permissions except that the local admin has the root password.

Is there some type of bytecode compiler/interpreter combo for the PHP
engine? Either free or commercially available?

 -Original Message-
 From: Steve Magruder [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 21, 2003 9:07 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] web services
 
 
 David Otton [EMAIL PROTECTED] wrote in
 message news:[EMAIL PROTECTED]
  On Fri, 21 Mar 2003 22:49:05 +0100, you wrote:
 
  I am currently trying to understand how to place content on a
  different
 site
  without giving away my code. SOAP seems to be the solution. I am
 absolutly
 
  First off, I have to say this is a social problem, not a technical
  one. If you're worried about the theft of your code (and, to be 
  honest, most code is worthless anyway), tackle it with a 
 contract, not
  a hack.
 
 Too many people use contracts like toilet paper... just my
 experience, for what it's worth.
 
 Steve
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] web services

2003-03-21 Thread Jason Sheets
There are several, probably the most talked about is Zend Encoder
(http://www.zend.com).  Zend also has a pretty attractive small business
program.

The APC (Alternative PHP Cache) also has a script that will enable you
to write out bytecode PHP scripts that can be run on any PHP server with
APC installed.

You can look on freshmeat.net, hotscripts.com and search google.com for
PHP Compiler or PHP Encoder and find more results.  

You are probably most likely to get a client to install something that
comes from a well known source, being Zend or APC off the top of my
head.

The Turck MMcache is actually faster than APC as it both caches compiled
PHP code and also does optimization (the benchmarks I've seen put it
only slightly slower than Zend's products) but as of yet it does not
support writing encoded PHP scripts.

Jason


On Fri, 2003-03-21 at 08:12, Darren Young wrote:
 I seem to remember reading somewhere about compiling PHP pages to
 'bytecode' thus removing the need to distribute the source PHP pages.
 I'm going to have the need down the road to distribute a PHP based app
 to others and am curious about the same hiding code issues. I'm not
 all that worried about people stealing code, but more making local
 modifications when they're not supposed to. I know I could simply
 protect the pages on the *NIX machines via decent file system
 permissions except that the local admin has the root password.
 
 Is there some type of bytecode compiler/interpreter combo for the PHP
 engine? Either free or commercially available?
 
  -Original Message-
  From: Steve Magruder [mailto:[EMAIL PROTECTED]
  Sent: Friday, March 21, 2003 9:07 AM
  To: [EMAIL PROTECTED]
  Subject: Re: [PHP] web services
  
  
  David Otton [EMAIL PROTECTED] wrote in
  message news:[EMAIL PROTECTED]
   On Fri, 21 Mar 2003 22:49:05 +0100, you wrote:
  
   I am currently trying to understand how to place content on a
   different
  site
   without giving away my code. SOAP seems to be the solution. I am
  absolutly
  
   First off, I have to say this is a social problem, not a technical
   one. If you're worried about the theft of your code (and, to be 
   honest, most code is worthless anyway), tackle it with a 
  contract, not
   a hack.
  
  Too many people use contracts like toilet paper... just my
  experience, for what it's worth.
  
  Steve
  
  
  
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
  
-- 
Jason Sheets [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] web services

2003-03-21 Thread Nikunj Virani
Hi Guys,

I want to create webservices using NUSoap + PHP. I have gone through NUSoap
Site at http://dietrich.ganx4.com/nusoap/faq.php but havenot found any thing
to start with. Can any body point me to some good examples + Manuals on the
matter.

PHP  Webservices sounds promising and i think using NUSoap is the best
alternative at present. Does any one have better ideas ?


Thanks and Regards,
Nikunj Virani




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] web services

2003-03-20 Thread Merlin
Hi everybody,

I am currently trying to understand how to place content on a different site
without giving away my code. SOAP seems to be the solution. I am absolutly
new to web services. What I did understand so far is that it is basicly
pritty simple to transfer some data like a currency exchange rate over the
web service. But how about a complete web portal? Connected to the same DB,
the php files hosted on my server, but the application served by a different
server. Like co branding the portal. Is this possible as well?

Maybe someone can point me into the right direction.

Thanx a lot,

Merlin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Web services and PHP

2002-08-12 Thread Aung

I have some web services developed with .NET and I would like to consume
these web services from PHP.  Can someone provide me with example code?

Thanks in advance.
Aung



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Web services and PHP

2002-08-12 Thread Peter Houchin

look up .NET in the manual it will have all your answers :D

 -Original Message-
 From: Aung [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 13 August 2002 1:16 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Web services and PHP
 
 
 I have some web services developed with .NET and I would like to consume
 these web services from PHP.  Can someone provide me with example code?
 
 Thanks in advance.
 Aung
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Web services and PHP

2002-08-12 Thread Aung

I don't see any function for .NET in PHP manual. Are you refering to
different manual?

Peter Houchin [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 look up .NET in the manual it will have all your answers :D

  -Original Message-
  From: Aung [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, 13 August 2002 1:16 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Web services and PHP
 
 
  I have some web services developed with .NET and I would like to consume
  these web services from PHP.  Can someone provide me with example code?
 
  Thanks in advance.
  Aung
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Web services and PHP

2002-08-12 Thread Peter Houchin

here ya go

http://www.php.net/manual/en/ref.dotnet.php



 -Original Message-
 From: Aung [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 13 August 2002 1:54 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Web services and PHP
 
 
 I don't see any function for .NET in PHP manual. Are you refering to
 different manual?
 
 Peter Houchin [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  look up .NET in the manual it will have all your answers :D
 
   -Original Message-
   From: Aung [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, 13 August 2002 1:16 PM
   To: [EMAIL PROTECTED]
   Subject: [PHP] Web services and PHP
  
  
   I have some web services developed with .NET and I would like 
 to consume
   these web services from PHP.  Can someone provide me with 
 example code?
  
   Thanks in advance.
   Aung
  
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
  
  
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Web services and PHP

2002-08-12 Thread Justin French

on 13/08/02 1:53 PM, Aung ([EMAIL PROTECTED]) wrote:

 I don't see any function for .NET in PHP manual. Are you refering to
 different manual?

http://www.php.net/manual/en/ref.dotnet.php

I found it pretty easy!


Justin French


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Web services and PHP

2002-08-12 Thread vic

.Net? BLASPHEMY!

- Vic


-Original Message-
From: Aung [mailto:[EMAIL PROTECTED]] 
Sent: Monday, August 12, 2002 11:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Web services and PHP

I have some web services developed with .NET and I would like to consume
these web services from PHP.  Can someone provide me with example code?

Thanks in advance.
Aung



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

__ 
Post your ad for free now! http://personals.yahoo.ca

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] web services and PHP

2002-08-01 Thread Bob Lockie


A'la ASP WebServices perhaps?

Bob Lockie [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 I'd like to know if it's possible to use PHP to develop and implement
 Web Services. If so, please point me to sites, articles, or tutorials
 that discuss this topic in more detail. Thanks.

 How do you define web services?

I know nothing about ASP.







-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] web services and PHP

2002-08-01 Thread Danny Shepherd

I think he means XML WebServices (probably using SOAP)

It's not too difficult, there are a few SOAP classes for PHP now, simply
send your SOAP encoded request to the server, via HTTP, and decode the SOAP
response that you get back.

There's also a SOAP module for PHP (alpha release atm) at
http://phpsoaptoolkit.sourceforge.net/phpsoap/

If you're after an all in 1 solution you might want to look at nusoap - but
it was really buggy the last time I used it, so I don't recommend it at this
time.

I've heard something about another all in 1 solution that's quite
promising - but it's behind closed doors atm.

Danny.

- Original Message -
From: Bob Lockie [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 01, 2002 4:09 PM
Subject: Re: [PHP] web services and PHP



 A'la ASP WebServices perhaps?
 
 Bob Lockie [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 
  I'd like to know if it's possible to use PHP to develop and implement
  Web Services. If so, please point me to sites, articles, or tutorials
  that discuss this topic in more detail. Thanks.
 
  How do you define web services?

 I know nothing about ASP.







 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] web services and PHP

2002-07-31 Thread Brian McGarvie

A'la ASP WebServices perhaps?

Bob Lockie [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 I'd like to know if it's possible to use PHP to develop and implement
 Web Services. If so, please point me to sites, articles, or tutorials
 that discuss this topic in more detail. Thanks.

 How do you define web services?






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] web services and PHP

2002-07-31 Thread Andrey Hristov


 There are two ways (SOAP) to use SOAP library written in PHP such as NuSOAP
by Dietrich Ayala or to use
PHP-SOAP toolkit (module for PHP written in C)by Brad Lafountain(coding) and
Shane Caraveo(testing) (available at sourceforge.net).

Regards,
Andrey

 Bob Lockie [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 
  I'd like to know if it's possible to use PHP to develop and implement
  Web Services. If so, please point me to sites, articles, or tutorials
  that discuss this topic in more detail. Thanks.
 
  How do you define web services?
 
 
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] web services and PHP

2002-07-31 Thread Andrew Chase

There is also a PEAR SOAP package available:

http://pear.php.net/package-info.php?pacid=87

Some web services also use XML-RPC, a simpler predecessor to SOAP:

http://www.xmlrpc.com

There are a couple of PHP classes available for implementing XML-RPC clients
and servers:

http://phpxmlrpc.sourceforge.net/


-Andy

 -Original Message-
 From: Andrey Hristov [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 31, 2002 2:40 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] web services and PHP



  There are two ways (SOAP) to use SOAP library written in PHP
 such as NuSOAP
 by Dietrich Ayala or to use
 PHP-SOAP toolkit (module for PHP written in C)by Brad
 Lafountain(coding) and
 Shane Caraveo(testing) (available at sourceforge.net).


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] web services and PHP

2002-07-30 Thread Ric Mañalac

Hi,

I'd like to know if it's possible to use PHP to develop and implement
Web Services. If so, please point me to sites, articles, or tutorials
that discuss this topic in more detail. Thanks.

--
Ric Mañalac

Note:

The information contained in this message may be privileged and
confidential and protected from disclosure. If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, you
are hereby notified that any dissemination, distribution or copying of
this communication is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to
the message and deleting it from your computer. Thank you.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] web services and PHP

2002-07-30 Thread Bob Lockie


I'd like to know if it's possible to use PHP to develop and implement
Web Services. If so, please point me to sites, articles, or tutorials
that discuss this topic in more detail. Thanks.

How do you define web services?




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Web Services

2002-06-26 Thread Laurent Drouet


Hi the ML

I would like to know if there is a way to request data from a web services
for example http://glkev.net.innerhost.com/glkev_ws/Currencyws.asmx
using php without java ?

If yes do you have some examples ?


regards

Laurent


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Web Services

2002-06-26 Thread Erik Price


On Wednesday, June 26, 2002, at 10:49  AM, Laurent Drouet wrote:

 I would like to know if there is a way to request data from a web 
 services
 for example http://glkev.net.innerhost.com/glkev_ws/Currencyws.asmx
 using php without java ?

If you know the web services API, you just send your request.  It 
shouldn't matter whether you're using Java, PHP, Python, even VB or even 
Telnet to generate your request -- most web services accept an HTTP POST 
message consisting of XML code which is used to perform some kind of 
action.

There are two things you can do -- either use the cURL functions (your 
PHP binary must be compiled with cURL enabled to do this), which give 
you an advanced set of URL accesses, or open a socket to the remote 
machine with the web service and send a stream of POST data that way.  
You can use Rasmus Lerdorf's postToHost function (this may as well 
just become a PHP function, it gets referenced so much), which I have 
appended to this message.

Either way, just generate your XML string and fire it at the remote 
machine.  You will need to write code to handle the response, obviously.

# ===
# PostToHost($host, $path, $data_to_send)
# ---
# It is a trivial little function.
# -Rasmus
# ===

function PostToHost($host, $path, $data_to_send)
{
$fp = fsockopen($host,80);
fputs($fp, POST $path HTTP/1.0\n);
fputs($fp, Host: $host\n);
fputs($fp, Content-type: application/x-www-form-urlencoded\n);
fputs($fp, Content-length:  . strlen($data_to_send) . \n);
fputs($fp, Connection: close\n\n);
fputs($fp, $data_to_send);
while(!feof($fp)) {
echo fgets($fp, 128);
}
fclose($fp);
}



Erik






Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Web Services

2002-06-26 Thread Thalis A. Kalfigopoulos

I've used Dietrich's SOAP implementation for PHP and have been able to use only with 
specific type of webservices (soap:binding style=rpc... and soap:body 
use=encoded...). Unfortunately your service has style=document and use=literal, 
so I'm not sure about it.

It can be found at:
http://dietrich.ganx4.com/nusoap/index.php

cheers,
thalis


On Wed, 26 Jun 2002, Laurent Drouet wrote:

 
 Hi the ML
 
 I would like to know if there is a way to request data from a web services
 for example http://glkev.net.innerhost.com/glkev_ws/Currencyws.asmx
 using php without java ?
 
 If yes do you have some examples ?
 
 
 regards
 
 Laurent
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Web Services

2002-06-26 Thread phpsurf

you should use PEAR-SOAP ...
there is also a php mailing list dedicated to the soap extension development
([EMAIL PROTECTED])


 -Original Message-
 From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]]
 Sent: mercredi 26 juin 2002 17:11
 To: Laurent Drouet
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] Web Services


 I've used Dietrich's SOAP implementation for PHP and have been
 able to use only with specific type of webservices (soap:binding
 style=rpc... and soap:body use=encoded...). Unfortunately
 your service has style=document and use=literal, so I'm not
 sure about it.

 It can be found at:
 http://dietrich.ganx4.com/nusoap/index.php

 cheers,
 thalis


 On Wed, 26 Jun 2002, Laurent Drouet wrote:

 
  Hi the ML
 
  I would like to know if there is a way to request data from a
 web services
  for example http://glkev.net.innerhost.com/glkev_ws/Currencyws.asmx
  using php without java ?
 
  If yes do you have some examples ?
 
 
  regards
 
  Laurent
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Web Services

2002-06-26 Thread phpsurf

you can get the entire php code with examples from the pear cvs repository

 -Original Message-
 From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]]
 Sent: mercredi 26 juin 2002 17:35
 To: phpsurf
 Cc: [EMAIL PROTECTED]
 Subject: RE: [PHP] Web Services
 
 
 I looked in pear.php.net and I couldn't find it. Also 
 http://www.soapware.org/directory/4/implementations links 
 PEAR-SOAP to http://pear.php.net
 
 There is only a m-list?
 
 
 On Wed, 26 Jun 2002, phpsurf wrote:
 
  you should use PEAR-SOAP ...
  there is also a php mailing list dedicated to the soap 
 extension development
  ([EMAIL PROTECTED])
  
  
   -Original Message-
   From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]]
   Sent: mercredi 26 juin 2002 17:11
   To: Laurent Drouet
   Cc: [EMAIL PROTECTED]
   Subject: Re: [PHP] Web Services
  
  
   I've used Dietrich's SOAP implementation for PHP and have been
   able to use only with specific type of webservices (soap:binding
   style=rpc... and soap:body use=encoded...). Unfortunately
   your service has style=document and use=literal, so I'm not
   sure about it.
  
   It can be found at:
   http://dietrich.ganx4.com/nusoap/index.php
  
   cheers,
   thalis
  
  
   On Wed, 26 Jun 2002, Laurent Drouet wrote:
  
   
Hi the ML
   
I would like to know if there is a way to request data from a
   web services
for example http://glkev.net.innerhost.com/glkev_ws/Currencyws.asmx
using php without java ?
   
If yes do you have some examples ?
   
   
regards
   
Laurent
   
   
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
   
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
  
  
   
  
 __
 
  ifrance.com, l'email gratuit le plus complet de l'Internet !
  vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
  http://www.ifrance.com/_reloc/email.emailif
  
  
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
  
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Web Services

2002-06-26 Thread Laurent Drouet


Thanks for the test .

I succeed in retrieving a number.

I had to add  $soapclient-setHTTPProxy to connect.

I don't know anything about webservices and I wonder if you know what I can
put in place of
$soapclient = new soapclient
('http://www.edelphi.com/scripts/KzAnyWho.exe/soap/IAnyWho');
   $result=$soapclient-call
('AnyWho',$parameters,urn:AnyWhoIntf-IAnyWho,urn:AnyWhoIntf-IAnyWho#AnyWho);


to connect to the webservice
http://glkev.net.innerhost.com/glkev_ws/Currencyws.asmx

I didn't find anything in the declaration satarting with urn;

Regards.

Laurent Drouet



   

Thalis A. 

Kalfigopoulos   To: Laurent Drouet [EMAIL PROTECTED] 

[EMAIL PROTECTED]   cc:   

t.edu   Subject: Re: [PHP] Web Services   

   

26/06/02 17:23 

   

   





You'll find sample code for both server and client in the README file of
the package.

I've written this client:

html
body
?php


require_once('nusoap.php');

if(!empty($areacode)  !empty($phonenum)){
   $parameters = array('AreaCode'=$areacode,'PhoneNumber'
=$phonenum);
   $soapclient = new soapclient
('http://www.edelphi.com/scripts/KzAnyWho.exe/soap/IAnyWho');
   $result=$soapclient-call
('AnyWho',$parameters,urn:AnyWhoIntf-IAnyWho,urn:AnyWhoIntf-IAnyWho#AnyWho);

   echo(RESULTS for ($areacode) $phonenumbr\n);
   if(is_array($result)){
 foreach($result as $key=$val){
   echo($key - $valbr\n);
 }
   }
}

?

form action=?=$PHP_SELF? method=post
table border=0
trtdPhone Number: tdinput name=areacode type=text size=3
maxlength=3 - input name=phonenum type=text size=7 maxlength
=7br
trtd colspan=2input type=submit value=Lookup
/table
/form
/body
/html


It is a client for this service:

http://www.edelphi.com/scripts/KzAnyWho.exe/


cheers,
thalis



On Wed, 26 Jun 2002, Laurent Drouet wrote:


 Do you have an URL of a web service and a PHP script from wich I can
start
 my tests ?

 Regards
 Laurent





 Thalis A.

 Kalfigopoulos   To: Laurent Drouet
[EMAIL PROTECTED]
 [EMAIL PROTECTED]   cc:
[EMAIL PROTECTED]
 t.edu   Subject: Re: [PHP] Web
Services


 26/06/02 17:10









 I've used Dietrich's SOAP implementation for PHP and have been able to
use
 only with specific type of webservices (soap:binding style=rpc... and
 soap:body use=encoded...). Unfortunately your service has style
 =document and use=literal, so I'm not sure about it.

 It can be found at:
 http://dietrich.ganx4.com/nusoap/index.php

 cheers,
 thalis


 On Wed, 26 Jun 2002, Laurent Drouet wrote:

 
  Hi the ML
 
  I would like to know if there is a way to request data from a web
 services
  for example http://glkev.net.innerhost.com/glkev_ws/Currencyws.asmx
  using php without java ?
 
  If yes do you have some examples ?
 
 
  regards
 
  Laurent
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php











-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Web Services

2002-02-28 Thread Andrey Hristov

 Hi,
Is there someone who knows good places with information about Web Services? Such as 
SOAP, XML-RPC, WSDL etc.
TIA
 
Andrey Hristov



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Web Services

2002-02-28 Thread Robert V. Zwink

Is there someone who knows good places with information about Web
Services? Such as SOAP, XML-RPC, WSDL etc.

http://www.nusphere.com/releases/2002/012802.htm

I'm not sure how useful it will be, but the above link may be a good
starting place.

They have a PDF available titled An Introduction to Web Services Enabled
with PHP
http://www.nusphere.com/products/library/webservices_whitep_012502.pdf

http://www.nusphere.com/products/tech_library.htm

Might be a good place to start, if you find additional links, please
consider sending them my way.  Good luck!

Robert Zwink

http://www.zwink.net/daid.php
-Original Message-
From: Andrey Hristov [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 7:55 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Web Services


 Hi,
Is there someone who knows good places with information about Web Services?
Such as SOAP, XML-RPC, WSDL etc.
TIA

Andrey Hristov



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php