Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Ticket #328 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

xsd:date + WSDL generated stub

Reported by: nahi Assigned to: nahi
Priority: high Milestone: 1.5.6
Component: wsdl4r Version: 1.5
Keywords: Cc:

Description

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?

Change History

05/05/07 00:39:40 changed by nahi

  • summary changed from xsd:data + WSDL generated stub to xsd:date + WSDL generated stub.

05/14/07 23:38:55 changed by nahi

  • priority changed from normal to high.

05/15/07 17:44:16 changed by nahi

  • status changed from new to closed.
  • resolution set to fixed.

(In [1775]) * encode/decode basetype according to type definition in rpc/encoded service. closes #98, #328.