Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
'Invalid XML character' in web service response
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01352953
Message ID:
01353005
Vues:
22
Hi,

Sorry, should have been more detailed. You need to send the full XML but the element containing the compressed string needs to be something like:
<CompressedString>
<![CDATA[compressedstuffgoeshere]]>
</CompressedString>
However it's not foolproof. If the CDATA section content happens to include the ']]>' end marker sequence then the XML is screwed. The only way around that is to use something like Base64 encoding - but then you'd lose a lot of the compression you were after in the first place
:={




>can i just return
<CDATA>adfadfadfadfadfad</CDATA>
or do i have to create full xml (ie root node etc...)
>
>Jaime
>
>>Hi,
>>
>>Put it in a CDATA tag
>>
>>>Hi all
>>>I have a web service that returns back a very big string. I improved it by compressing the string before sending it, and now i get at the client the error message in Title. Is there a setting i have to change for it to send the binary data? It's a plain vanilla VFP web service.
>>>
>>>Thanks
>>>Jaime
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform