尝试生成模拟SOAP服务,但是我收到错误...
WSDLException (at /definitions/message[23]/part[1]): faultCode=INVALID_WSDL:
Encountered illegal extension attribute 'nillable'.
Extension attributes must be in a namespace other than WSDL's
看起来是因为元素...
<part name="ChangesSince" nillable="true" type="xs:dateTime" />
...当然如果我删除它,SoapUI停止抱怨并生成模拟服务
但是如果我然后针对模拟服务生成WCF客户端,则日期时间是......
private System.DateTime closureDateField;
而对于他们生成的真实网络服务......
[System.Xml.Serialization.SoapElementAttribute(IsNullable=true)]
public System.Nullable<System.DateTime> ClosureDate
有没有办法在SoapUI中处理nillable?