DateType will not work (i.e. for Birthdays) when TimeZone is not specified in 
the soap message
----------------------------------------------------------------------------------------------

                 Key: XFIRE-975
                 URL: http://jira.codehaus.org/browse/XFIRE-975
             Project: XFire
          Issue Type: Bug
          Components: Aegis Module
    Affects Versions: 1.2.5
            Reporter: Jacob Robertson
            Assignee: Dan Diephouse


Take for example this SOAP request

{code}
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:web="http://a.mycompany.com"; xmlns:ser="http://b.mycompany.com";>
   <soapenv:Body>
      <web:getMember>
         <web:in0>
            <ser:birthDate>1998-11-04</ser:birthDate>
         </web:in0>
      </web:getMember>
   </soapenv:Body>
</soapenv:Envelope>
{code}

This request may not always succeed unless I'm living in GMT.  That's because 
XsDateTimeFormat will always subtract the right number of hours, which changes 
the day every time for me because of the time zone I'm running my code in.

The easiest way for me to get around this right now is to add the Zone to the 
request, but this is bad for two reasons - (1) hate to explain to the customer 
that they have to do this as a workaround to a bug in the opensource product 
we're using, and (2) doesn't make sense to specify the timezone in the 
birthdate.

For now, I will proceed with using a custom type.  I was able to subclass Type 
and use a SimpleDateFormat successfully.

If I'm just missing how to do this, then treat this as a request to add some 
documentation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to