I will warn you that i have never used PHP to call a web service but have spent the last 2 days googling with trial and error and think that i have come to a point where i have no idea what to do as nothing is working.
Here is my PHP code...
<?php
$soapclient = new SoapClient('Link-To-EndPoint');
$params = array('Username' => 'Username',
'Password' => 'Password',
'clientRequestId' => 1,
'projectNumber' => 64111,
'requestDateTime' => '2014-03-16T11:05:24.572Z',
'itemNumber' => 'F00573019120B',
'projectNumber' => 64111
);
$response = $soapclient->GetItemDetailInfo($params);
echo '<pre>';
var_dump($response);
echo '</pre>';
?>
And here is the request, probably worth noting that this gives the full response and works when i use SOAP UI to make the request.
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Header>
<Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<UsernameToken>
<Username>Username</Username>
<Password>Password</Password>
</UsernameToken>
</Security>
</env:Header>
<env:Body>
<getItemDetailInfoRequest>
<requestHeader>
<clientRequestId>1</clientRequestId>
<projectNumber>64111</projectNumber>
<requestDateTime>2014-03-20T14:05:24.572Z</requestDateTime>
</requestHeader>
<getItemDetailInfoList>
<itemDetailSearchCriteria>
<itemNumber>F00573019120B</itemNumber>
<projectNumber>64111</projectNumber>
</itemDetailSearchCriteria>
</getItemDetailInfoList>
</getItemDetailInfoRequest>
</env:Body>
</env:Envelope>
When i load the page i get a blank screen nothing comes out from $response, I have no idea if i am close to making this work or if i am super far off with this. Using the above code i am able to make a public weather SOAP Web Service work which makes me think i am close.
Any help would be appreciated!