'date' is an invalid value for the SoapElementAttribute

carpinteyroemq

New Member
I have a web service URL from my customer and its wsdl file.I added new project from wsdl file.In wsdl \[code\]<element name="ProductionDate" type="xsd:date" minOccurs="0" maxOccurs="1" nillable="true"/>\[/code\]In reference.cs file\[code\][System.Xml.Serialization.SoapElementAttribute("ProductionDate", DataType="date", IsNullable=true)]public System.Nullable<System.DateTime> ProductionDate{get { return this.ProductionDate;}set { this.ProductionDate= value;}}\[/code\]When I try to create WebService class instance,it throw an exception : 'date' is an invalid value for the SoapElementAttribute.I changed in my wsdl \[code\][System.Xml.Serialization.SoapElementAttribute("ProductionDate", DataType="date")]public System.DateTime ProductionDate{get { return this.ProductionDate;}set { this.ProductionDate= value;}}\[/code\]So I can create webService class instance but when I call from my customer webservice Url, throw an exception : Method 'q1:blabla not implemented: method name or namespace not recognized.So is there any other way to get this working?
 
Back
Top