phpeveryday.com

The best tutorial of php, php framework, php strategies, object oriented oriented,


Web Services - WSDL: Types

Tag: web services, wsdl, types   Category: PHP Application
post: 10 Apr 2008 read: 1,028


PHP Web Services Using WSDL Step By Step Tutorial - Part 3: The types element encapsulates the data type definitions used when messages are exchanged. XML schema is the preferred language. It offer maximum interoperability.

  <types>
    <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:Hello">
      <xsd:element name="getName" type="xsd:string" />
	  <xsd:element name="HelloResponse" type="xsd:string" />	 	  
	</xsd:schema>			
  </types>

In our practice, we want to pass simple string. So, we write xsd:string. Other, you can use numeric type. For strings or numerics, we can handle with simple way xsd:string or xsd:int which does not get defined here. For objects and arrays, we will talk next time.



Series this article:
Webservices - WSDL: Anatomy of WSDL Document
Web Services - WSDL: Sample WSDL Document
Web Services - WSDL: Types
Web Services - WSDL: Messages
Web Services - WSDL: Port Types
Web Services - WSDL: Bindings
Web Services - WSDL: Service
Web Services - WSDL: Creating SOAP Server
Web Services - WSDL: Testing with SOAP Client

| Give Your Opinion | Recommend
Share and Bookmark to: These icons link to social bookmarking sites where readers can share and discover new web pages.
digg del.icio.us technorati Ma.gnolia BlinkList

Recommended articles by other readers:
Web Services: How PHP Kiss VB.NET? (Part 1)
Chart: How to Build Cool Animation Real Time Chart
Joomla: Fast Road to Understand Component Programming
Email: Send Attachement Mail
mod_rewrite - Part 1: create your "fantasy" URL

What do You Think?
Your Name *:
Email *:
(Will not be published)
Website/URL:
Your Comment *:
* Required


619
posting