Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: XML Web Services c Tutorial

Learn how to create simple XML-RPC/SOAP web services using PHP and nuSOAP.

Tutorial Details:

Using SOAP in PHP

This document assumes knowledge of PHP and that you know what SOAP is. If you do not know what SOAP is, see my paper 'what is soap?' at: http://www.x2studios.com/index.php?page=papers&id=1 .

PHP is so popular across the internet; most hosting companies and campuses have it installed; that quite often we are asked how to use PHP to deploy or access webservices using XML-RPC/SOAP. Although PHP is not my choice for doing webservices I can and will answer this question, with just one word of caution: PHP handles data types really poorly, don?t use it for any complex services.

Which Library To Use First thing no one has a desire to manually parse XML, build envelopes and do networking (if you do quit reading now and see: http://www.w3c.org for the specs). So we should choose a library (or class) to do the tedious work for us. There are many to pick from, just take a look on google, but I think the best is dietrich?s ?NUSOAP? which can be downloaded free from http://dietrich.ganx4.com/nusoap/index.php. Download it and install it somewhere the webserver has access to.

Building a (very) Basic Service
You?ll now want to do a basic service (server). The following code is a variation on the required hello world example. It will return a greeting when called upon by a client. The variation is that it requires a name to send a greeting to.


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
XML Web Services c Tutorial

View Tutorial:
XML Web Services c Tutorial

Related Tutorials:

Axis: The next generation of Apache SOAP
Axis: The next generation of Apache SOAP
 
Use Web services to integrate Web applications with EISs
Use Web services to integrate Web applications with EISs
 
Is WSDL the indispensable API?
Is WSDL the indispensable API?
 
Is the JCP adequately preparing Java for Web services?
Is the JCP adequately preparing Java for Web services?
 
J2EE 1.4 eases Web service development
J2EE 1.4 eases Web service development
 
The Java Web Services Tutorial
This tutorial is a beginner\'s guide to developing Web services and Web applications using the Java Web Services Developer Pack (Java WSDP).
 
The J2EE 1.4 Tutorial
The J2EE 1.4 Tutorial is a guide to developing enterprise applications for the Java 2 Platform, Enterprise Edition (J2EE) version 1.4. Here we cover all the things you need to know to make the best use of this tutorial.
 
Excellent tutorial on Struts and Tiles
Excellent tutorial on Struts and Tiles This tutorial assumes knowledge of Java, JDBC, Servlets, J2EE (with regards to Web applications) and JSP Struts in a holistic manner, minus the beads and crystals. The Tiles framework makes creating reusable pages
 
WS-Specifications
WS-Specifications The WS-Specifications build a composable architecture to form an environment for complex Web Service applications. Different vendors, such as BEA, IBM, Microsoft, RSA Security and SAP, have joined forces to lay the foundation of secure
 
Turn EJB components into Web services
Summary Web services have become the de facto standard for communication among applications. J2EE 1.4 allows stateless Enterprise JavaBeans (EJB) components to be exposed as Web services via a JAX-RPC (Java API for XML Remote Procedure Call) endpoint, al
 
XML Document Validation with an XML Schema
This tutorial explains the procedure of validating an XML document with an XML schema.
 
The JavaTM Web Services Tutorial
A beginner's guide to developing Web services and Web applications on the Java Web Services Developer Pack
 
JavaServer Pages Technology - Documentation
Sun's tutorial for Java Server Pages that provide a good introduction to design web pages with JSP.
 
Generating an XML Document with JAXB
In this tutorial, JAXB is used to generate Java classes from an XML Schema. An example XML document shall be created from the Java classes.
 
Developing Distributed application using Enterprise Java Beans, J2EE Architecture, EJB Tutorial, WebLogic Tutorial.
Developing Distributed application using Enterprise Java Beans, J2EE Architecture, EJB Tutorial, WebLogic Tutorial. Distributed Architecture Two-tier application: In the past two-tier applications were used. Two-tier applications are also know as
 
10 Minutes Guide to Ant
10 Minutes Guide to Ant 10 Minutes Guide to Ant Previous Tutorial Index Next Introduction Well for the next 10 minutes get ready to devote to the ant guide. This will make some sence to the ant. Ant is a free tool under GNU Licence and is
 
Building Web Application With Ant and Deploying on Jboss 3.0
Building Web Application With Ant and Deploying on Jboss 3.0 Building Web Application With Ant and Deploying on Jboss 3.0 Previous Tutorial Index Next In this lesson I will show you how to build you web application and install on the Jboss 3.0
 
Parisonz Solutions!
Parisonz Solutions! W elcome to Parisonz Solutions . The purpose of this web is to Develop and Distribute Projects to Businesses and Individuals though Web. We have a wide range of projects completed online — including software development, web
 
WAP Toolkits Motorola - Mobile ADK 1.1 Nokia - WAP Toolkit
WAP Toolkits Motorola - Mobile ADK 1.1 Nokia - WAP Toolkit Tutorial WAP Toolkits T o develop any WAP application you have to download software essential for development. Although you can write and test your codes through our site for learning
 
Chat Transcript: Java Web Services Developer Pack (Java WSDP) 1.5
Learn about the exciting new web services features in the recently-released Java WSDP 1.5.
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.