from soap4r-ml
I am trying to talk to a soap service whose wdsl file contains the
following line
<element name="localDate" nillable="false" type="xsd:date"/>
I have used wsdl2ruby to generate some static driver code and all is
basically working fine, but my wiredump of the outgoing connection
shows that my field is actually being mapped to a different xsd
format:
<localDate xsi:type=\"xsd:dateTime\">2007-04-02T14:03:05.42724+01:00</
localDate>
whereas I was hoping to see something like this
<localDate xsi:type=\"xsd:date\">2007-04-02</localDate>
My calling code just passes a Time.now so maybe that's the problem:
localDate = Time.now
but if I try something like
localDate = '2007-04-02'
it passes an xsd:string instead and fails.
Anyone got any ideas? How do I tell soap4r to generate an xsd:date
field?