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

testing OpenClinica's new web service for eventscheduling

Hi Colton,
Can you try the date format 01-Jun-2009? That is the new default for 3.0.
Best, Tom
-----Original Message-----
Sent: Fri 6/26/2009 14:56
To: [email protected]
Subject: [Developers] testing OpenClinica's new web service for eventscheduling

Hi,
I'm trying out OpenClinica's new web service for event scheduling.
Here's the php script with which I'm doing this (the hashed password has been redacted):
***********************************************




root
**********************






1


1

SE_EVENT1
Hello
2009-01-01



';
$request = simplexml_load_string($message);
var_dump ($soapClient->__doRequest($request->saveXML(), 'https://localhost:8443/alpha2/ws/event/v1', 'schedule', 1));
*************************************************************
For the test, I've already loaded into the database a patient and an event definition.
When I execute the script, I get:
*************************************************************
php event_soap.php
string(290) "SOAP-ENV:ServerUnparseable date: "2009-01-01 ""
**************************************************************
I've tried several permutations of the date: '01/01/2009', '20090101', etc. But I get the same result: the date is unparseable.
I'm close! Any help would be greatly appreciated.
Thanks!
Attachments:
winmail.dat 3.9 KB

Comments

  • Paul GalvinPaul Galvin Posts: 886
    Hi Colton,
    Although you can try 01-Jun-2009 to see if it works, that should not be
    the date format for the web service. All dates provided via our web
    services should be in the ISO 8601 format like you provided below,
    YYYY-MM-DD.
    We'll look into the bug and fix it before we release the beta of 3.0.
    Thanks,
    Paul
    -----------------------------------------------------------------------
    Paul J. Galvin
    Project Manager
    Akaza Research
    617-621-8585 x25
    www.akazaresearch.com
    www.openclinica.org
    ~ OpenClinica Enterprise ~ Ask me about professional training, support,
    and services for OpenClinica
    -----Original Message-----
    [mailto:[email protected]] On Behalf Of Tom Hickerson
    Sent: Friday, June 26, 2009 8:39 AM
    To: [email protected]
    Subject: RE: [Developers] testing OpenClinica's new web service for
    eventscheduling
    Hi Colton,
    Can you try the date format 01-Jun-2009? That is the new default for
    3.0.
    Best, Tom
    -----Original Message-----
    Sent: Fri 6/26/2009 14:56
    To: [email protected]
    Subject: [Developers] testing OpenClinica's new web service for
    eventscheduling

    Hi,
    I'm trying out OpenClinica's new web service for event scheduling.
    Here's the php script with which I'm doing this (the hashed password has
    been redacted):
    ***********************************************




    root
    **********************






    1


    1

    SE_EVENT1
    Hello
    2009-01-01



    ';
    $request = simplexml_load_string($message);
    var_dump ($soapClient->__doRequest($request->saveXML(),
    'https://localhost:8443/alpha2/ws/event/v1', 'schedule', 1));
    *************************************************************
    For the test, I've already loaded into the database a patient and an
    event definition.
    When I execute the script, I get:
    *************************************************************
    php event_soap.php
    string(290) "SOAP-ENV:ServerUnparseable date: "2009-01-01
    ""
    **************************************************************
    I've tried several permutations of the date: '01/01/2009', '20090101',
    etc. But I get the same result: the date is unparseable.
    I'm close! Any help would be greatly appreciated.
    Thanks!
  • smithsmith Posts: 120
    Hi Tom!
    I tried: '01-Jun-2009' with this result:
    php event_soap.php
    string(291) "SOAP-ENV:ServerUnparseable date: "01-Jun-2009 ""
    I tried: '01Jun2009' with this result:
    php event_soap.php
    string(289) "SOAP-ENV:ServerUnparseable date: "01Jun2009 ""
    In my installation of 3.0-beta2, I haven't messed with any date formats ... I'm using the defaults.
    Here's what my openclinica-ws.log reports:
    ***************************************
    06/26 08:49:32.482 [http-8443-Processor24] DEBUG o.s.w.s.MessageTracing.received:166 - Received request [SaajSoapMessage {http://openclinica.org/ws/event/v1}scheduleRequest]
    06/26 08:49:32.495 [http-8443-Processor24] TRACE o.s.ws.server.MessageTracing.sent:175 - Sent response [SOAP-ENV:ServerUnparseable date: "01-Jun-2009 "] for request [<?xml version="1.0"?>





    1


    1

    SE_EVENT1
    Hello
    01-Jun-2009


    ]
    ****************************************************************
    What do you think is going on?
    Thanks!
    -----Original Message-----
    Sent: Fri 6/26/2009 8:39 AM
    To: [email protected]
    Subject: RE: [Developers] testing OpenClinica's new web service for eventscheduling

    Hi Colton,
    Can you try the date format 01-Jun-2009? That is the new default for 3.0.
    Best, Tom
    -----Original Message-----
    Sent: Fri 6/26/2009 14:56
    To: [email protected]
    Subject: [Developers] testing OpenClinica's new web service for eventscheduling

    Hi,
    I'm trying out OpenClinica's new web service for event scheduling.
    Here's the php script with which I'm doing this (the hashed password has been redacted):
    ***********************************************




    root
    **********************






    1


    1

    SE_EVENT1
    Hello
    2009-01-01



    ';
    $request = simplexml_load_string($message);
    var_dump ($soapClient->__doRequest($request->saveXML(), 'https://localhost:8443/alpha2/ws/event/v1', 'schedule', 1));
    *************************************************************
    For the test, I've already loaded into the database a patient and an event definition.
    When I execute the script, I get:
    *************************************************************
    php event_soap.php
    string(290) "SOAP-ENV:ServerUnparseable date: "2009-01-01 ""
    **************************************************************
    I've tried several permutations of the date: '01/01/2009', '20090101', etc. But I get the same result: the date is unparseable.
    I'm close! Any help would be greatly appreciated.
    Thanks!
    Attachments:
    winmail.dat 4.7 KB
This discussion has been closed.