I have a web-service with following link
I'm trying to access the function name with SubmitRequestType
but it seems the function is not exist instead submitAnsiSingle
this is the correct function name what I tried so far is ,
$wsdl = 'https://ww3.navicure.com:7000/webservices/NavicureSubmissionService?WSDL';
class SecurityHeaderType {
private $submitterIdentifier;
private $originatingIdentifier;
private $submitterPassword;
private $submissionId;
function SecurityHeaderType() {
$this->submitterIdentifier = '***';
$this->originatingIdentifier = '****';
$this->submitterPassword = '****';
$this->submissionId = '';
}
}
class SubmitRequestType {
private $submitterIdentifier;
private $originatingIdentifier;
private $submitterPassword;
private $submissionId;
private $timeout;
private $transactionType;
private $submittedAnsiVersion;
private $resultAnsiVersion;
private $submitterSubmissionId;
private $processingOption;
private $payload;
private $exceptions;
function SubmitRequestType() {
$this->submitterIdentifier = '***';
$this->originatingIdentifier = '***';
$this->submitterPassword = '**';
$this->submissionId = '**';
$this->timeout = 60 ;
$this->transactionType = "E";
$this->submittedAnsiVersion = '5010';
$this->resultAnsiVersion = '5010';
$this->submitterSubmissionId = '**';
$this->processingOption = 'R';
$this->payload = 'EDI-270-Request';
$this->exceptions = true;
}
}
$soapheader = new SecurityHeaderType();
$submitrequest = new SubmitRequestType();
$service = new \SoapClient($wsdl);
$result= $service->SubmitAnsiSingle($submitrequest);
echo "<pre/>";print_r($result);
$types = $service->__getTypes ();
$functions = $service->__getFunctions ();
//echo "<pre/>";print_r($types);
//echo "<pre/>";print_r($functions);
But I'm getting the response like below it seems the request is processing on their end but the SecurityHeaderType
is not parsing their end.
stdClass Object
(
[transactionTyp] => E
[submitterSubmissionId] => ****
[submittedAnsiVersion] => 5010
[resultAnsiVersion] => 5010
[statusHeader] => stdClass Object
(
[statusCode] => 1150
[statusMessage] => com.navicure.webservices.core.WSCoreException: Account does not exist for ''
[requestProcessed] =>
)
)
Any hint will be highly appreciate
Thanks in advance.