PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old February 21st, 2004, 10:38 AM
harvey_r01 harvey_r01 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Bournemouth
Posts: 37 harvey_r01 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
PHP & Nusoap

Hi All,

I am just getting started with nusoap and the whole concept and spec of wsdl, soap and web services and am currently trying to create my own dummy web service. I've decided to make a simple web service that returns names of my colleagues and am completing this with the use of a class that contains all the required functions, a service file that creates the web service and a client file that calls the service.

The trouble i'm having is when I register the function in my class to nusoap. How should this be completed, i've done it like so (which obviously doesn't work!) $soapserver->register('$names->getNames');
$names = class object
getNames = function in class

...or should I be creating my service in my class...
PHP Code:
class names extends mysql {
  
$ed2kSOAP = new soap_server;
  
$ed2kSOAP->register('getLinkonName');
  
/* ... all required functions ... */
  
$ed2kSOAP->service($HTTP_RAW_POST_DATA);



any advice will be greatly appreciated...

cheers,
Harvey

Reply With Quote
  #2  
Old February 21st, 2004, 12:52 PM
harvey_r01 harvey_r01 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Bournemouth
Posts: 37 harvey_r01 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
...Sorry, the code was supposed to be...
PHP Code:
class names extends mysql {
  
$namesSOAP= new soap_server;
  
$namesSOAP->register('getNames');
  
/* ... all required functions ... */
  
$namesSOAP->service($HTTP_RAW_POST_DATA);



...confuse myself sometimes!

...cheers

Reply With Quote
  #3  
Old February 23rd, 2004, 03:42 AM
harvey_r01 harvey_r01 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Bournemouth
Posts: 37 harvey_r01 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
...Can anyone help??

Harvey

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > PHP & Nusoap


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway