Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Ajax
|
Ajax the combination of XHTML, CSS, DOM, XML, XSLT, XMLHttpRequest, and JavaScript
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Ajax section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 9th, 2008, 02:41 AM
2mk 2mk is offline
Registered User
 
Join Date: Feb 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to 2mk
Default Call PHP Web Services

I've read Profesional Ajax Book and there a chapter about calling web services with Ajax. But example in that Book using asp web services. How about if my web services using PHP (using nusoap library), how i call the web services ?

This is my simple web services :

Code:
<?php 
include('nusoap.php'); 
$server= new soap_server; 
$server->register('LoginPresenter'); 
 
//Login Presenter 
function LoginPresenter($user_mail, $user_password) 
{ 
    if(!$user_mail or !$user_password) 
    { 
        return new soap_fault( 
            'Client', '', 
            'Parameter anda tidak lengkap', '' 
        ); 
    }else 
    { 
        ........................         
            return $user;             
    } 
} 
$server->service($HTTP_RAW_POST_DATA); 
 
exit(); 
?>
 
Old February 10th, 2008, 10:50 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

One of the core principles of web services is platform independence. Presuming that a given web service is compliant with the SOAP standard, consuming it should be the same regardless of the underlying technology used to serve it.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Proxy script to call web services with Ajax 2mk Ajax 0 March 4th, 2008 04:58 AM
Help for Web Services vivekshah C# 0 June 8th, 2006 08:15 AM
Web services hrudanand Apache Tomcat 0 March 27th, 2006 02:08 PM
Web Services Error (Ch18) - No Web Disc. Info. ElPato BOOK: Beginning ASP.NET 1.0 2 April 13th, 2005 03:27 PM
No download Pro PHP web Services Geneg Wrox Book Feedback 1 December 2nd, 2003 03:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.