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
StarStarStar 52%Total: 1,334 This week: 1All time: 2,898 This week: 560Up
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: 40
All time rank: 1337 in India India
Week rank: 109 Up9 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,334
This week:1
All time:2,898
This week:560Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:52%StarStarStar
Rank:2357