I'm trying to learn how to use SoapUI to integrate Web Services to my website. I've been trying to follow PHP's documentation, but it is very confusing. My question is: how can I translate this soap code to PHP, so I can call the SOAP function. This is what I got so far:
$wsdl = "http://api.rlcarriers.com/1.0.2/ShipmentTracingService.asmx?wsdl";
$request = [
'APIKey' => 'xxxxxxxxxxxxxxxxxxxxxx',
'traceNumbers' => $pro,
'TraceType' => 'PRO',
'FormatResults' => 'false',
'IncludeBlind' => 'false',
'OutputFormat' => 'Standard'
];
$client = new SoapClient($wsdl);
$result = $client->TraceShipment($request);
print_r($result);
However, this is not working. I don't know what I'm doing wrong. I appreciate any help provided. I've spent hours trying to figure it out and it's driving me crazy. This is the soap request code that I get with SoapUI by following this wsdl file: http://api.rlcarriers.com/1.0.2/ShipmentTracingService.asmx?wsdl
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:rlc="http://www.rlcarriers.com/">
<soap:Header/>
<soap:Body>
<rlc:TraceShipment>
<!--Optional:-->
<rlc:APIKey>******************</rlc:APIKey>
<!--Optional:-->
<rlc:request>
<!--Optional:-->
<rlc:TraceNumbers>
<!--Zero or more repetitions:-->
<rlc:string>143248716</rlc:string>
</rlc:TraceNumbers>
<rlc:TraceType>PRO</rlc:TraceType>
<rlc:FormatResults>false</rlc:FormatResults>
<rlc:IncludeBlind>false</rlc:IncludeBlind>
<rlc:OutputFormat>Standard</rlc:OutputFormat>
<!--Optional:-->
<rlc:CustomerData></rlc:CustomerData>
</rlc:request>
</rlc:TraceShipment>
</soap:Body>
</soap:Envelope>