Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support DateTimeOffset in wsdl generation #62

Closed
nalla opened this issue Mar 8, 2018 · 1 comment
Closed

Support DateTimeOffset in wsdl generation #62

nalla opened this issue Mar 8, 2018 · 1 comment

Comments

@nalla
Copy link

nalla commented Mar 8, 2018

Currently, when using DateTimeOffset as type an error is thrown indicating that the type is not supported.

.NET type DateTimeOffset cannot be resolved into XML schema type

Instead something similar to here should be constructed.

<xs:schema targetNamespace="http://schemas.datacontract.org/2004/07/System">  
   <xs:complexType name="DateTimeOffset">  
      <xs:sequence minOccurs="1" maxOccurs="1">  
         <xs:element name="DateTime" type="xs:dateTime"  
         minOccurs="1" maxOccurs="1" />  
         <xs:elementname="OffsetMinutes" type="xs:short"  
         minOccurs="1" maxOccurs="1" />  
      </xs:sequence>  
   </xs:complexType>  
</xs:schema>
@drabb1956
Copy link

WSDL generation is failing for me when a parameter or property is Nullable of DateTimeOffset

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants