Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I'm completely stumped on this. I am trying to connect to a .NET web service that accepts the following parameters:
[syntax="xml"]
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Send xmlns="http://www.group2call.com/messagecenter/webservice/SendMessage">
<sAccount>string</sAccount>
<sPin>string</sPin>
<sGroup>string</sGroup>
<sPhone>
<string>string</string>
<string>string</string>
</sPhone>
<sType>string</sType>
<iVoice>int</iVoice>
<sMessage>string</sMessage>
</Send>
</soap:Body>
</soap:Envelope>
My PHP code:[/syntax]
Code: Select all
$client = new SoapClient($this->wsdlADMServer,'wsdl','','','','');
$param = array('sAccount' => $this->g2cACCOUNT,
'sPin' => $this->g2cPIN,
'sPhone' => ??????????,
'sMessage' => 'hello',
'iVoice' => 1,
'sType' => 'SMS');
$result = $client->call('Send', array('parameters' => $param), '', '', false, true);Thanks.
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]