Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SOAP appears to lose carriage return codes...
Message
De
21/06/2002 12:00:08
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Divers
Thread ID:
00671055
Message ID:
00671063
Vues:
13
>This appears to be a general problem with web services as I've been able to reproduce it with both an ASP.NET client and VFP client:
>
>I am using fread() to populate a string with lines from a file. The string appears to be valid, but loses the line feed characters within the web service. The corresponding string creates one long, ugly line within the web service.
>
>I called the web service as a standard .dll and sent the same string: result was a perfectly formatted string to file.
>
>Any suggestions on what I'm doing incorrectly?
>
>(my apologies for double posting both here and on .NET forum, but I know different people follow each forum)

If you wish to get the entire file content, you may use FILETOSTR().

If you wish to get only some specific lines, than FREAD() might be the way to go. FREAD() requires a specific number of bytes to know up to where to take. So, if you count the number of characters in a line, you may have to add a manual carriage return after each process.

But, it would help if you put the code in here. It's always easier to help when we see it.

I am passing some big quantities of text through Web Service and I never had any problem. For example, the UT messages contain a lot of carriage returns in messages and they are all sent ok.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform