Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Names instead of numbers as indexes of arrays
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01383776
Message ID:
01384855
Vues:
73
It depends on what you are using to interface with the Web Service and more importantly what the server expects.

As you know VFP arrays don't support named indexers, so if you end up passing an array that won't work. You can use collections, but VFP collections are not likely to be a workable parameter input to a Web Service call.

In general too, Web Services don't support named indexer's either. Web Services tend to serialize data into simple arrays. For example, if you have a .NET Web Service and you publish a collection or a dictionary into the WSDL it'll end up as an array.

Why do you need this functionality and why should it matter how you get the data into it? If this is necessary in your code why not create a collection internally and then turn the collection back into an array or something along those lines.

+++ Rick ---

>To consuming a Web Services, By parameter, I need to set as array's index a name instead of number, as described following:
>
>
>array('name'=>'new name of product'),
>
>In VFP, is that possibility, I mean... The possibility to contour this difference.. giving something to this web service that can be interpreted on its needs?
>
>Any help will be full appreciated..
>
>
>Claudio
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform