phpeveryday.com

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


Web Services - WSDL Array: Testing with SOAP Client

Tag: web services, wsdl, array, soap, client   Category: PHP Application
post: 14 Apr 2008 read: 685


Web Services WSDL Array Type Step By Step Tutorial - Part 5: Last, now we test with soap client. Create a file named "books_client.php" within www/test/wsdl. Enter following code:

<?php
if(!extension_loaded("soap")){
  dl("php_soap.dll");
}


ini_set("soap.wsdl_cache_enabled","0");
$client = new SoapClient("http://localhost/test/wsdl/books.wsdl");
$search = $client->doMyBookSearch("test");

print_r($search);
?>

Point your browser to http://localhost/test/wsdl/book_client.php. You should get array value.



Series this article:
Web Services - WSDL Array: Array Type
Web Services - WSDL Array: Object Type
Web Services - WSDL Array: Sample WSDL Document
Web Services - WSDL Array: Sample Soap Server
Web Services - WSDL Array: 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