Sidebar

What might cause NoResultsException: Error calling Web Service 'EMRWebServiceConn': java.lang.NullPointerException

0 votes
284 views
asked May 11, 2016 by rich-c-2789 (15,250 points)

I am trying to call a soap web service but I get the following error:

[line: 15] WrappedException: Wrapped com.qvera.qie.exception.NoResultsException: Error calling Web Service 'EMRWebServiceConn': java.lang.NullPointerException

Relevant code:

...
var value = qie.callSOAPWebService(
   "EMRWebServiceConn",
   "WebserviceSoapBinding",
   "GetMed",
   soapEnvelope,
   false,
   parameterMap,
   60000);
...

Relevant WSDL:

...
  <wsdl:binding name="WebserviceSoapBinding" type="tns:Webservice">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="GetMeds">
      ...
    </wsdl:operation>
    <wsdl:operation name="GetAllergies">
      ...
    </wsdl:operation>
    <wsdl:operation name="AddMed">
      ...
    </wsdl:operation>
...   

 

1 Answer

0 votes
Check to make sure the binding and operation are supported.  Looking at the above example the operation should be "GetMeds" instead of "GetMed"
answered May 11, 2016 by rich-c-2789 (15,250 points)
...