Jump to content

PHP SOAP


Benji1298

Recommended Posts

Ok, so I need to send a SOAP message to my server, but I have never done this before. The complete SOAP message should be as follows:

 

<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance">
<soapenv:Body><request><username>testuser</username>
</request></soapenv:Body></soapenv:Envelope>

I have been trying to get this to work for a while now and can't do it, so I need your help. Here is what I have right now:

 

$params = array('username'=>$username); 
$params2 = array('request'=>$params); 
$response = $client->invokeService($params2); 
var_dump($response); 

Please, any help is appreciated. I really don't understand this at all. I need help ASAP.

Link to comment
https://forums.phpfreaks.com/topic/234011-php-soap/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.