31 Dec 2018: Thank you to our knowledgeable and friendly forums users for another great year. We are aware of the uptick in spam accounts and are doing our best to ban these at first sight. Thank you for your patience!

SOAP ImportRequest not working despite valid ODM

Hi!

I am trying to use the Data Web Service to upload data into OpenClinica. My applications generates the SOAP request but I always receive the error message "Your XML is not well-formed." I did check the included ODM data, and it is correct, since I can import it just fine via the web interface of OpenClinica. Something must be wrong with my SOAP envelope. I have included both my envelope in this post.

Thank you for any help!

Kind regards
Kilian Boisheim

Comments

  • GerbenRienkGerbenRienk Posts: 799 ✭✭✭
    Hi Kilian,
    In your request you have the ODM-tag twice. Try again with just one, preferably just "odm" and skip the CDATA-thingie. This would result in
    <v1:importRequest><odm><ClinicalData etc. etc.
    and end in
    </ClinicalData></odm></v1:importRequest></soapenv etc. etc.
    Otherwise it looks good.
    Hope this helps,
    Gerben Rienk
  • kilianmkilianm Posts: 2
    Thank you, Gerben!
    You definitely gave me the right clue, though I had to capitalize the <odm> to make it work, i.e. do it like:
    <v1:importRequest><ODM><ClinicalData etc. etc.
    </ClinicalData></ODM></v1:importRequest>

    Kind regards
    Kilian Boisheim
  • RCHENURCHENU Posts: 204
    edited February 2016
    I really think this page should be clarified:
    https://docs.openclinica.com/3.1/technical-documents/openclinica-web-services-guide/data-web-service

    Like: http://host:8080/OpenClinica-ws/ws/data/v1/dataWsdl.wsdl

    or this [CDATA[
    ]] which is not very clear or the Request Parameters which are wrong here...

    Anyway, this thread saved me.

    Romain.
Sign In or Register to comment.