We hope you'll join us for our 4/23 webinar on using data tables to apply reference ranges and AE codes in OC4. For more information and to register, visit https://register.gotowebinar.com/register/2882170018956684555

NullPointerException in response to listAllByStudy SOAP web service

Hi,

I'm currently trying to implement some of the OpenClinica  SOAP web services. Except for the listAllByStudy web service everything is working so far and gives suitable responses. My SOAP XML request looks like this:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://openclinica.org/ws/studySubject/v1" xmlns:bean="http://openclinica.org/ws/beans">
<soapenv:Header><wsse:Security wsse:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-27777511" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username>*******</wsse:Username>
<wsse:Password>*******</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<v1:listAllByStudyRequest>
<bean:studyRef>
<bean:identifier>someStudy</bean:identifier>
</bean:studyRef>
</v1:listAllByStudyRequest>
</soapenv:Body>
</soapenv:Envelope>

As far as I understand the reference to a site in the request XML can be omitted. The response XML looks like this:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring xml:lang="en">java.lang.NullPointerException</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Since other webservice (obtaining all studies or the study meta data) are working, I don't think there is problem with the header. SOAP web services are also enabled for the given user name, the password is hashed in a correct way and the given study exists and has several study subjects. Is the request XML build in a wrong way?

Comments

This discussion has been closed.