PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Nitesh Apte   SOAP HTTP Header Sender   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: usage
Class: SOAP HTTP Header Sender
Send SOAP client requests using Curl
Author: By
Last change:
Date: 12 years ago
Size: 379 bytes
 

Contents

Class file image Download
<?php
include_once 'class.SOAPHttpSender.php';

$_soapClient = new SOAPHttpSender("http://xyz.abc.whatever?wsdl");

$_soapClient->__doRequest("name=x&pass=y", "http://xyz.abc.whatever?wsdl", "#urn:xyzwhatever", "12");

// Call a web service method in usual way
$_serverResponse = $_soapClient->soapMethod($parameters);

echo
"<pre>";
print_r($_serverResponse);
echo
"</pre>";
?>