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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.