PHP Classes

SOAP HTTP Header Sender: Send SOAP client requests using Curl

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,333 All time: 2,897 This week: 158Up
Version License PHP version Categories
soap-http-sender 1.0GNU General Publi...5.3HTTP, PHP 5, Web services
Description 

Author

This class can send SOAP client requests using Curl.

It extends the SOAP client class and overrides the __doRequest function to send the actual HTTP request using the Curl extension functions.

You can send any custom headers by tweaking the class code.

Picture of Nitesh Apte
  Performance   Level  
Name: Nitesh Apte is available for providing paid consulting. Contact Nitesh Apte .
Classes: 17 packages by
Country: India India
Age: 39
All time rank: 1337 in India India
Week rank: 530 Down36 in India India Down
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

Example

<?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>";
?>


  Files folder image Files  
File Role Description
Plain text file class.SOAPHttpSender.php Class Class for sending http header while making a soap request
Accessible without login Plain text file example.php Example usage

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,333
This week:0
All time:2,897
This week:158Up