Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Verification on Web Service
Message
De
06/10/2010 11:02:26
 
 
À
06/10/2010 10:28:26
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01484151
Message ID:
01484161
Vues:
32
>A client has a Web Service. In order to call it, we use a .NET client in high level. So, when we call the method, we have to pass objects, as this is a complex structure. So, several parameters are being passed as object. Then, in each, we have some properties which are, in one case, dates. So, when I initialize it for that case, it goes like this:
>
>
>            ' Define the document dates object
>            loDocumentDates.dtDocumentDate = loRow("CloseDate")
>
>
>Then, later on, loDocumentDates is passed as one of the parameters.
>
>This has worked for two weeks. We have sent a bunch of data over there. Last night, we discovered that that client has a special request when we send an empty date. When, this is the case, they want us to send it like this:
>
>
><dtDocumentDate xsi=nil=true/>
>
>
>Well, we are high level. In order to manipulate the XML as is, we would need to turn it low level by using SOAP. Has anyone found any other way?

At a guess I'd try declaring loDocumentDates.dtDocumentDate as a nullable type and just not setting it if loRow("CloseDate") contains an empty date.....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform