I need to use WebService with .NET 1.1. The problem is that webService returns Null Values, and .NET 1.1 does not work with Nullable types.
WebService Schema Part
<xs:element name="SomeDate" type="xs:dateTime" nillable="true" /> <xs:element name="Email" type="xs:string" nillable="true" />
How could you use it? What approach would I use to solve this puzzle?
I can't even call WebService..Net 1.1 try to parse the null values ββand the failure.
When we try to call WebService, it gives us the following exception:
The input string was not in the correct format.
Exception Details: System.FormatException: The input string was not in the correct format.
Line 75: [System.Web.Services.Protocols.SoapDocumentMethodAttribute ("http://mysite.com/Clientes/ConsultaCliente", RequestNamespace = "http://mysite.com/Clientes/", ResponseNamespace = "http: // mysite.com/Clientes/ ", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
Line 76: public Clientes ConsultaCliente (ParametrosConsultaClientes parametros) {
Line 77: object [] results = this.Invoke ("ConsultaCliente", new object [] {
Line 78: parametros});
[FormatException: the input line was not in the correct format.]
System.Number.ParseInt32 (String s, NumberStyles style, NumberFormatInfo info) +0
System.Int32.Parse (String s, type NumberStyles, provider IFormatProvider) +37
System.Xml.XmlConvert.ToInt32 (String s)