SoapFault - Internal Server Error

359 views
Skip to first unread message

Shivasish Chakraborty

unread,
Sep 19, 2017, 5:43:26 AM9/19/17
to HL7v2 Immunization Testing
Hi ,

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 ));
}

Affo, Harold (Assoc)

unread,
Sep 20, 2017, 1:50:06 PM9/20/17
to Shivasish Chakraborty, HL7v2 Immunization Testing

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


Harold Affo
 
--------------------------------------------------------------------
The contents of this e-mail and any attachments are intended solely for the use
of the named addressee(s) and may contain confidential and/or privileged
information. Any unauthorized use, copying, disclosure, or distribution of the
contents of this e-mail is strictly prohibited. If you are not the intended
recipient, please notify the sender immediately and delete this email. Thank you.


From: hl7v2-immuniz...@googlegroups.com <hl7v2-immuniz...@googlegroups.com> on behalf of Shivasish Chakraborty <shiv...@cozeva.com>
Sent: Tuesday, September 19, 2017 5:43:26 AM
To: HL7v2 Immunization Testing
Subject: SoapFault - Internal Server Error
 
--
You received this message because you are subscribed to the Google Groups "HL7v2 Immunization Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hl7v2-immunization-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

at...@cozeva.com

unread,
Sep 20, 2017, 4:20:45 PM9/20/17
to HL7v2 Immunization Testing
Hi Harold,

We tried with Boomerang, and started the listener from SOAPCON_3, but still got a Status 500 error response. Attached are the screenshots for request and response




To unsubscribe from this group and stop receiving emails from it, send an email to hl7v2-immunization-testing+unsub...@googlegroups.com.

Shivasish Chakraborty

unread,
Sep 21, 2017, 9:50:53 AM9/21/17
to HL7v2 Immunization Testing
Hi Harload,

Thanks for your quick response,  I have tried SOAPUI with the new credentials its working fine  but whenever I am trying to send message from our server we are getting response as 500/ Internal Server Error.
Soap UI Screen shot is attached.

But the same formatted SOAP envelop is generated by  our code ( given below) which is getting 500 error.

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:cdc:iisb:2011">
<SOAP-ENV:Body>
<ns1:submitSingleMessage>
<ns1:username>shivasish</ns1:username>
<ns1:password>3b5dfa1218bf11102698ebc215090a3c4ce81f48909ea050baebd4db273e2d96</ns1:password>
<ns1:facilityID>shivasish</ns1:facilityID>
<ns1:hl7Message>abc</ns1:hl7Message>
</ns1:submitSingleMessage>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Is there any other parameters we need to send when we are called the service ?

Thanks-
Shivasish Chakraborty



To unsubscribe from this group and stop receiving emails from it, send an email to hl7v2-immunization-testing+unsub...@googlegroups.com.
soapUI.PNG

Affo, Harold (Assoc)

unread,
Sep 21, 2017, 11:31:57 AM9/21/17
to Shivasish Chakraborty, HL7v2 Immunization Testing






Harold Affo
 
--------------------------------------------------------------------
The contents of this e-mail and any attachments are intended solely for the use
of the named addressee(s) and may contain confidential and/or privileged
information. Any unauthorized use, copying, disclosure, or distribution of the
contents of this e-mail is strictly prohibited. If you are not the intended
recipient, please notify the sender immediately and delete this email. Thank you.

Sent: Thursday, September 21, 2017 9:50:53 AM
To: HL7v2 Immunization Testing
Subject: Re: SoapFault - Internal Server Error
 
To unsubscribe from this group and stop receiving emails from it, send an email to hl7v2-immunization-...@googlegroups.com.

Shivasish Chakraborty

unread,
Sep 22, 2017, 9:26:12 AM9/22/17
to HL7v2 Immunization Testing
Hi Harold,

Now I got your point, I just changed the SOAP Client version and its working fine , Thanks a lot for your help.

--
Shivasish Chakraborty

Affo, Harold (Assoc)

unread,
Sep 22, 2017, 9:37:54 AM9/22/17
to Shivasish Chakraborty, HL7v2 Immunization Testing

You are welcome. 


Harold Affo
 
--------------------------------------------------------------------
The contents of this e-mail and any attachments are intended solely for the use
of the named addressee(s) and may contain confidential and/or privileged
information. Any unauthorized use, copying, disclosure, or distribution of the
contents of this e-mail is strictly prohibited. If you are not the intended
recipient, please notify the sender immediately and delete this email. Thank you.

Sent: Friday, September 22, 2017 9:26:12 AM

To: HL7v2 Immunization Testing
Subject: Re: SoapFault - Internal Server Error
--
Reply all
Reply to author
Forward
0 new messages