[Xml-compile] XML-Compile-0.96 & XML-Compile-SOAP-0.78.: dateTime element missing

Allan Wind allan at insurancedesk.com
Sat Nov 8 08:22:08 GMT 2008


I am trying to use a service with a dateTime element:

<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema" ..>
...
<s:element name="AddLeadWithUser">
...
   <s:element minOccurs="1" maxOccurs="1" name="dob" type="s:dateTime" />
...

When I use the element I am able to generate the document just fine
with a value for the dob element of:
...<x0:dob>1986-01-01T00:00:00Z</x0:dob>...

however when I try to submit this document the SOAP interface that
uses the same element I get the error (domain changed to example.com):

error: required value for element
`{https://www.example.com/AddLeadService/}dob' missing at
{https://www.example.com/AddLeadService/}AddLeadWithUser

Any ideas?

BuiltInTypes.pm:

-strftime("%Y-%m-%dT%H:%S:%MZ", gmtime($_[0]))
+strftime("%Y-%m-%dT%H:%M:%SZ", gmtime($_[0]))

BuiltInTypes.pod

       dateTime

           A moment, represented in localtime as "date T time tz", where date
           is "YYYY-MM-DD", time is "HH:MM:SS" and optional, and time-zone tz
           is either "-HH:mm", "+HH:mm", or "Z" for UTC.

Not sure if time is optional and tz is optional, and if there is no
timezone then is the default not in Z opposed to localtime?

           A moment, represented as "date T time tz", where date
           is "YYYY-MM-DD", time is "HH:MM:SS", and optional tz which is either
           "-HH:mm", "+HH:mm", or "Z" for UTC.


/Allan
-- 
Allan Wind
Software Engineering Manager
InsuranceDesk.com
Tel. (781) 932 4700 ext. 190
http://www.InsuranceDesk.com



More information about the Xml-compile mailing list