We are currently working on the forum. For the short-term, all forum content will be in read-only format. We apologize for the interruption and look forward to collaborating with you shortly. All the best in your research!

WS services adding a subject - problems!

kristiakkristiak Posts: 1,340 ✭✭✭
We are trying to add a subject through WS services but the system keeps asking for siteRef:identifier. According to the documentation https://docs.openclinica.com/3.1/technical-documents/openclinica-web-services-guide/studysubject-web-service siteRef:identfier is not needed. What do we do wrong and where can we find this identifier?

I attach our SOAP request

Regards

Krister
SOAP request.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?mso-application progid="Word.Document"?>
<?xml version="1.0" encoding="UTF-8"?><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 soapenv: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>root</wsse:Username>Â Â Â Â Â Â Â Â Â Â <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">490881723984f3468bb0de3870a8437f42227631</wsse:Password>Â Â Â Â Â Â Â </wsse:UsernameToken>Â Â Â Â </wsse:Security>Â Â </soapenv:Header>Â Â <soapenv:Body>Â Â Â Â Â <v1:createRequest>Â Â Â Â Â Â Â Â <!--1 or more repetitions:-->Â Â Â Â Â Â Â Â <v1:studySubject>Â Â Â Â Â Â Â Â Â Â Â <!--Optional:-->Â Â Â Â Â Â Â Â Â Â Â <bean:label>dpms_9</bean:label>Â Â Â Â Â Â Â Â Â Â Â <!--Optional:-->Â Â Â Â Â Â Â Â Â Â Â <bean:secondaryLabel>Webservice User</bean:secondaryLabel>Â Â Â Â Â Â Â Â Â Â Â <bean:enrollmentDate>2011-09-19</bean:enrollmentDate>Â Â Â Â Â Â Â Â Â Â Â <bean:subject>Â Â Â Â Â Â Â Â Â Â Â Â Â Â <!--Optional:-->Â Â Â Â Â Â Â Â Â Â Â Â Â Â <bean:uniqueIdentifier>?</bean:uniqueIdentifier>Â Â Â Â Â Â Â Â Â Â Â Â Â Â <!--Optional:-->Â Â Â Â Â Â Â Â Â Â Â Â Â Â <bean:gender>m</bean:gender>Â Â Â Â Â Â Â Â Â Â Â Â Â Â <!--You have a CHOICE of the next 2 items at this level-->Â Â Â Â Â Â Â Â Â Â Â Â Â Â <bean:dateOfBirth>1999-09-09</bean:dateOfBirth>Â Â Â Â Â Â Â Â Â Â Â Â Â Â <bean:yearOfBirth>1999</bean:yearOfBirth>Â Â Â Â Â Â Â Â Â Â Â </bean:subject>Â Â Â Â Â Â Â Â Â Â Â <bean:studyRef>Â Â Â Â Â Â Â Â Â Â Â Â Â Â <bean:identifier>DPMSL</bean:identifier>Â Â Â Â Â Â Â Â Â Â Â Â Â Â <!--Optional:-->Â Â Â Â Â Â Â Â Â Â Â Â Â Â <bean:siteRef>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <bean:identifier>DPMSL_1</bean:identifier>Â Â Â Â Â Â Â Â Â Â Â Â Â Â </bean:siteRef>Â Â Â Â Â Â Â Â Â Â Â </bean:studyRef>Â Â Â Â Â Â Â Â </v1:studySubject>Â Â Â Â Â </v1:createRequest>Â Â </soapenv:Body></soapenv:Envelope>KristerKrister12011-09-20T10:14:00Z2011-09-20T10:15:00Z<w:lsdException w:name="Medium List 2 Accent 4" w:semiHidden="0" w:uiPriority="66" w:unhideWhenUsed="0
This discussion has been closed.