How to expose a datetime type in WSDL in a ATL Webservice
-
Hi there! I have a problem regarding how to expose a function-parameter as a 'xs:datetime' in a WSDL-file from a ATL-Webservice. I know that ATL7 doesn't support this type per default - instead one should expose the function parameter as a BSTR, e.g.: [soap_method] STDMETHOD(TestFunc)(BSTR MyDate, BSTR* bstrOut); - but this results in that the WSDL for the method exposes the parameter 'MyDate' as a string (as it should). Now one could just change the WSDL afterwards to convert the parameter to a xs:datetime - but this would get broken each time one recompiles - so this isn't the best option. I have looked through the MSDN-samples - but haven't (yet) found any way to do this. I have an idea that one could 'play around' with the "[tag_name]"-attribute to build own datatypes - but I'm not that familiar with this attribute (yet). Does anyone have an idea how to expose a function parameter as a different type than the primitive datatypes? Best regards, Michael B. Hansen