I am trying the Soap-Connectivity of NIST immunization Test Suit, but I am getting "Internal Server Error" whenever we are invoking service 'submitSingleMessage', also the '__getLastResponse' is returning as null,
I am sharing the PHP code below, please correct I am doing anything wrong or its a Security issue.
$trace = true;
$exceptions = false;
$wsdl = 'https://hl7v2-iz-r1.5-testing.nist.gov:8098/iztool/ws/iisService.wsdl';
$params = array(
'username' => 'atan',
'password' => '***********',
'facilityID' => 'atan',
'hl7Message" => "MSH|^~\&|Test EHR Application|X68||NIST Test Iz Reg|201207010822||VXU^V04^VXU_V04|NIST-IZ-007.00|P|2.5.1|||AL|ER
PID|1||MR-99922^^^NIST MPI^MR||Montgomery^Lewis^^^^^L||20010821|M
ORC|RE||IZ-783276^NDA
RXA|0|1|20110215||118^HPV^CVX|999|||01^Historical information - source unspecified^NIP001'
);
try{
$client = new SoapClient($wsdl, array('trace' => $trace, 'exceptions'
=> $exceptions));
$result = $client->submitSingleMessage($params);
watchdog ( 'scsoap', 'Response:' . print_r($result, 1));
watchdog ( 'scsoap', 'last response:' . print_r ($client-
>__getLastResponse (), 1 ) );
} catch( Exception $e){
watchdog ( 'scsoap', 'Error:' . print_r ($e->getMessage (), 1));
} catch ( SoapFault $fault ) {
watchdog ( 'scsoap', 'SoapFault:' . print_r($fault->getMessage(), 1 ));
}
Hello,
Unfortunately not being a php expert, I cannot say much about the code itself.
Are you able to send to the web service using other soap clients such as Boomerang or SoapUI ?
-H
To unsubscribe from this group and stop receiving emails from it, send an email to hl7v2-immunization-testing+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to hl7v2-immunization-testing+unsub...@googlegroups.com.
You are welcome.