phpeveryday.com

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


Web Services - WSDL: Port Types

Tag: web services, wsdl, port types   Category: PHP Application
post: 10 Apr 2008 read: 598


PHP Web Services Using WSDL Step By Step Tutorial - Part 5: a port type is a named set of abstract operations and the abstract messages involved. A port type element contains a collection of operations and associates the message used with them. Look at our practice below:

  <portType name="HelloPort">
    <operation name="doHello">
	  <input message="tns:doHello" />
	  <output message="tns:doHelloResponse" />
	</operation>
  </portType>

To look relationship with messages, see below:

php webservices WSDL portType and Messages

a port type element contains any number of child operation elements. An operation element exists for each operation that will exposed by web services named through its name attribute. The value of the name of attribute is the name of the corresponding PHP function.

At the client side, the name attribute is the name of the function you will be calling.

Next, we will talk about Binding.



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


615
posting