PHP Classes

SOAP HTTP Header Sender: Send SOAP client requests using Curl

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 52%Total: 1,334 All time: 2,900 This week: 524Up
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: 41 Up2 in India India Up
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 (2)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,334
This week:0
All time:2,900
This week:524Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:52%StarStarStar
Rank:2389