IT Community - Software Programming, Web Development and Technical Support

Implementing soap using PHP

This is a discussion on Implementing soap using PHP within the PHP Programming forums, part of the Web Development category; Hi Buddies This Link may help you to know about SOAP and how we can implement the soap with google ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 03-12-2008, 02:29 AM
Falcon Falcon is offline
D-Web Analyst
 
Join Date: Nov 2007
Location: Chennai
Posts: 289
Falcon is on a distinguished road
Default Re: Implementing soap using PHP

Hi Buddies

This Link may help you to know about SOAP and how we can implement the soap with google search

Tag: SOAP - PHP articles and PHP tutorials - PHP 5, MySQL, PostgreSQL, AJAX, Web 2.0

This may help you...

Regards
Falcon
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #22 (permalink)  
Old 03-13-2008, 02:25 AM
Falcon Falcon is offline
D-Web Analyst
 
Join Date: Nov 2007
Location: Chennai
Posts: 289
Falcon is on a distinguished road
Default Re: Implementing soap using PHP

Hi Buddies

Implementing SOAP on cakePHP

Requirements
So, I set off on my quest to implement soap. In brief, my requirement were:
1.Serve soap
2.Automatically generate and serve wsdl
3.Handle complex types in method calls and return values
4.Work within the cakePHP framework
5.Easy to implement and easy to use

Serve Soap
Since I use php5 and because I plan to generate the wsdl separately, I choose to use the soap server/client included with php5.
PHP: SOAP - Manual

WSDL
For generating wsdl I choose to use Webservice helper from David Kingma:
jool.nl | Webservice Helper - WSDL generator PHP 5 - software ontwikkeling maatwerk content management advies online communicatie

Regards
Falcon
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 03-13-2008, 02:31 AM
Falcon Falcon is offline
D-Web Analyst
 
Join Date: Nov 2007
Location: Chennai
Posts: 289
Falcon is on a distinguished road
Default Re: Implementing soap using PHP

Hi Buddies

Implementing SOAP on cake PHP

The main challenge here is to get the soap arguments out of the soap envelope so that they can be passed to the controller method. At first glance you might think you could simply use the SoapServer to call the controller method. Like this:
PHP Code:
<?php
$server 
= new SoapServer($wsdlfile);
$server->setClass('HandleSoapClass');
$server->handle();
?>
Regards
Falcon

Last edited by Falcon : 03-13-2008 at 02:33 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 03-13-2008, 02:32 AM
Falcon Falcon is offline
D-Web Analyst
 
Join Date: Nov 2007
Location: Chennai
Posts: 289
Falcon is on a distinguished road
Default Re: Implementing soap using PHP

Hi Buddies

Implementing SOAP on cake PHP

Handle soap class looks like this:
PHP Code:
<?php
class HandleSoapClass{
    
/** @var AppController */
    
static $controller;

    
/** @var string */
    
static $wsClassName;
    
    function 
__call $func_name$args ){
        return 
self::$controller->requestAction('/'.substr(self::$wsClassName,0,-10).'/'.$func_name.'/soap5/', array('pass'=>$args) );
    }
}
?>
Regards
Falcon
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 03-13-2008, 05:16 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: Implementing soap using PHP

hi,
thanks for the useful information. I have a small question.

What is cake PHP and its uses?
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26 (permalink)  
Old 03-14-2008, 03:25 AM
Falcon Falcon is offline
D-Web Analyst
 
Join Date: Nov 2007
Location: Chennai
Posts: 289
Falcon is on a distinguished road
Default Re: Implementing soap using PHP

Hi Jey

CakePHP is an open source web application framework written in PHP, modeled after the concepts of Ruby on Rails,[2] and distributed under the MIT License.

Regards
Falcon
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #27 (permalink)  
Old 03-14-2008, 03:28 AM
Falcon Falcon is offline
D-Web Analyst
 
Join Date: Nov 2007
Location: Chennai
Posts: 289
Falcon is on a distinguished road
Default Re: Implementing soap using PHP

Hi Jey

CakePHP is a free open-source rapid development framework for PHP. Its a structure of libraries, classes and run-time infrastructure for programmers creating web applications originally inspired by the Ruby on Rails framework. Our primary goal is to enable you to work in a structured and rapid manner - without loss of flexibility.

Regards
Falcon
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #28 (permalink)  
Old 03-14-2008, 03:30 AM
Falcon Falcon is offline
D-Web Analyst
 
Join Date: Nov 2007
Location: Chennai
Posts: 289
Falcon is on a distinguished road
Default Re: Implementing soap using PHP

Hi Jey

CakePHP has several features that make it a great choice as a framework for developing applications swiftly and with the least amount of hassle. Here are a few in no particular order:
  1. Active, friendly community
  2. Flexible Licensing
  3. Compatibility with PHP4 and PHP5
  4. Integrated CRUD for database interaction and simplified queries
  5. Application Scaffolding
  6. Model View Controller (MVC) Architecture
  7. Request dispatcher with good looking, custom URLs
  8. Built-in Validation
  9. Fast and flexible templating (PHP syntax, with helpers)
  10. View Helpers for AJAX, Javascript, HTML Forms and more
  11. Security, Session, and Request Handling Components
  12. Flexible access control lists
  13. Data Sanitization
  14. Flexible View Caching
  15. Works from any web site subdirectory, with little to no Apache configuration involved
Regards
Falcon
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #29 (permalink)  
Old 03-19-2008, 02:36 AM
Falcon Falcon is offline
D-Web Analyst
 
Join Date: Nov 2007
Location: Chennai
Posts: 289
Falcon is on a distinguished road
Default Re: Implementing soap using PHP

Hi Buddies

Web service is both a process and set of protocols for finding and connecting to software exposed as services over the Web. By building on standard Internet protocols such as HTTP and SOAP, developers can concentrate on what data to exchange instead of worrying about how to get it from point A to point B. To make things even easier, SOAP also defines an XML envelope to carry XML data, as well as a convention for doing remote procedure calls. This RPC capability allows Web service providers to advertise "call me here" so that a program (not a human) will be able to do so without concern for language or platform.


Regards
Falcon
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #30 (permalink)  
Old 03-19-2008, 02:40 AM
Falcon Falcon is offline
D-Web Analyst
 
Join Date: Nov 2007
Location: Chennai
Posts: 289
Falcon is on a distinguished road
Default Re: Implementing soap using PHP

Hi Buddies

WSDL
An XML formatted language used to describe a webservice capabilities as collection of communication endpoints capable of exchanging message. WSDL is an integral part of UDDI an XML based world wide business registry. WSDL was developed by Microsoft and IBM

Regards
Falcon
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #31 (permalink)  
Old 03-19-2008, 02:54 AM
senraj senraj is offline
D-Web Master
 
Join Date: Jul 2007
Posts: 418
senraj is on a distinguished road
Post Re: Implementing soap using PHP

Hi,

This topic is very useful for me. am new to this topic. I have one question.

What is UDDI ?what is it abbrivation?
__________________
Regards,
Senraj.A
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #32 (permalink)  
Old 03-19-2008, 03:20 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: Implementing soap using PHP

Quote:
Originally Posted by Falcon View Post
Hi Buddies

Web service is both a process and set of protocols for finding and connecting to software exposed as services over the Web. By building on standard Internet protocols such as HTTP and SOAP, developers can concentrate on what data to exchange instead of worrying about how to get it from point A to point B. To make things even easier, SOAP also defines an XML envelope to carry XML data, as well as a convention for doing remote procedure calls. This RPC capability allows Web service providers to advertise "call me here" so that a program (not a human) will be able to do so without concern for language or platform.


Regards
Falcon
Hi,
Nice explanation here. I have wondered to see these information.

From the above i have one small doubt

What is the web services repository?
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #33 (permalink)  
Old 03-19-2008, 03:56 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: Implementing soap using PHP

Quote:
Originally Posted by Falcon View Post
Hi Jey

CakePHP is an open source web application framework written in PHP, modeled after the concepts of Ruby on Rails,[2] and distributed under the MIT License.

Regards
Falcon
Hi Falcon,
I have cleared my doubt here that i was thinking this as a seperate language as PHP.
can u provide me a sample code on cakePHP?
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #34 (permalink)  
Old 03-20-2008, 03:07 AM
Falcon Falcon is offline
D-Web Analyst
 
Join Date: Nov 2007
Location: Chennai
Posts: 289
Falcon is on a distinguished road
Default Re: Implementing soap using PHP

Hi Senraj

Quote:
Originally Posted by senraj View Post
Hi,

This topic is very useful for me. am new to this topic. I have one question.

What is UDDI ?what is it abbrivation?
Universal Description, Discovery, and Integration (UDDI) provides the definition of a set of services supporting the description and discovery of (1) businesses, organizations, and other Web Services providers, (2) the Web Services they make available, and (3) the technical interfaces which may be used to access those services.

Regards
Falcon
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #35 (permalink)  
Old 03-20-2008, 03:15 AM
Falcon Falcon is offline
D-Web Analyst
 
Join Date: Nov 2007
Location: Chennai
Posts: 289
Falcon is on a distinguished road
Default Re: Implementing soap using PHP

Hi Jey

Repositories are a basic part of Web Services. They make it possible for to find Web Services. Once a Web Service found in a repository, the repository also describes how to use the Web Service.

Regards
Falcon
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #36 (permalink)  
Old 03-21-2008, 05:52 AM
Falcon Falcon is offline
D-Web Analyst
 
Join Date: Nov 2007
Location: Chennai
Posts: 289
Falcon is on a distinguished road
Default Re: Implementing soap using PHP

Hi Buddies

Web Services define a new landscape for distributed computing that includes XML as the data, SOAP and HTTP as the protocols for moving data across the Web, and Web Services protocols such as UDDI and WSDL for the discovery and connection to those services. Playing a central role in this automatic Web-based discovery and lookup is a shift to a central repository that maintains data described in yellow pages for category search, white pages for direct name search, and green pages for details about making a connection. Whether these repositories exist behind or outside firewalls is up to the application implementation. However, the basic idea that companies or departments with services to offer can register and be discovered by clients seeking those services, is changing the face of the enterprise. While it remains to be seen how all this plays out, the bottom line is that we're moving into a new era of distributed interaction, driven by the Web and fueled by XML.

Regards
Falcon
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #37 (permalink)  
Old 03-21-2008, 05:53 AM
Falcon Falcon is offline
D-Web Analyst
 
Join Date: Nov 2007
Location: Chennai
Posts: 289
Falcon is on a distinguished road
Default Re: Implementing soap using PHP

Hi Buddies

The simplicity of XML in combination with the Web has opened up new possibilities for moving data and for building new application architectures centered around common Internet protocols. Some of the changes brought about by XML include:

-- A reduced dependence on proprietary data formats for applications

-- A new way to do B2B data exchange using XML instead of the formats defined by traditional EDI systems

-- A shift from relying on tightly coupled systems such as CORBA, RMI, and DCOM to a more loosely coupled Internet-based framework centered around XML and SOAP

-- A change in focus from object-oriented to service-oriented software

-- The emergence of Web services as technology for discovering and connecting to Internet-based services

-- A move away from monolithic applications that attempt to do it all to a more organic software model that derives new capabilities from the combination of well-defined, limited in scope, software components.


Regards
Falcon
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #38 (permalink)  
Old 03-25-2008, 05:44 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: Implementing soap using PHP

hi,
It seems that we have to get wsdl document file from others if they provide. But here i want to have my own wsdl. can i have it my own?
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #39 (permalink)  
Old 03-26-2008, 01:26 AM
Falcon Falcon is offline
D-Web Analyst
 
Join Date: Nov 2007
Location: Chennai
Posts: 289
Falcon is on a distinguished road
Default Re: Implementing soap using PHP

Hi Jey

Yes, you can provide your own WSDL file, for that you have to install the soap server library file into your web server

Regards
Falcon
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #40 (permalink)  
Old 03-26-2008, 02:21 AM
rekhaa rekhaa is offline
D-Web Trainee
 
Join Date: Mar 2008
Posts: 5
rekhaa is on a distinguished road
Default Re: Implementing soap using PHP

Hi Guys,
Thanks. it is really help me to know more on SOAP. Please continue this. As i am learning , it is surely help me to apply to my site
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Implementing Role Based Security in ASP.NET S.Vinothkumar C# Programming 13 04-02-2008 04:53 AM
SOAP with Example... amansundar XML and SOAP 4 03-20-2008 11:41 PM
Soap in php venkatbi PHP Programming 10 09-26-2007 09:26 AM
What are the primary considerations when implementing a user defined key? oxygen Java Programming 1 07-26-2007 04:52 AM
Implementing Crystal Report in Web Application oxygen C# Programming 0 07-15-2007 11:40 PM


All times are GMT -7. The time now is 02:27 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.