I need to send values to a 3rd party database, but I'm having some trouble. I think I am missing something very basic.
this file is named raw.php
<?php
$client = new SoapClient(null,
array('location' => "http://www.example.com/FillDistributionGroup",
'uri' => "http://www.example.com/AgileTexterWebService/Service.asmx" ));
//Trying to get these constants to work before sticking my variables in there
$params = array(
'accountId' => '50618',
'firsName' => 'tim',
'lastName' => 'powell',
'mobileNumber' => '8124443730',
'distrGroup' => 'Atlanta Airport Cigar',
);
//This is where I get confused - Is _soapCall correct? Should the first argument //be a method on the SOAP server? or some previously defined method?
$result = $client->__soapCall('FillDistributionGroup',$params);
?>
When I call this, I receive:
Fatal error: Uncaught SoapFault exception: [HTTP] Not Found in C:\Inetpub\wwwroot\membertext\raw.php:14 Stack trace: #0 [internal function]: SoapClient->doRequest('soapCall('FillDistributio...', Array) #2 {main} thrown in C:\Inetpub\wwwroot\membertext\raw.php on line 14
I don't really understand what the problem is....
Also, the third party company provided this sample.
POST /AgileTexterWebService/Service.asmx HTTP/1.1
Host: www.agilegateway.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.example.com/FillDistributionGroup"
<?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>
<FillDistributionGroup xmlns="http://www.agiletexter.com">
<accountId>string</accountId>
<pwd>string</pwd>
<firsName>string</firsName>
<lastName>string</lastName>
<mobileNumber>string</mobileNumber>
<distrGroup>string</distrGroup>
<email>string</email>
</FillDistributionGroup>
</soap:Body>
</soap:Envelope>
Honestly, I'm not sure what to do with it. Do I call it like I would a php script?
Can someone help please?!