Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XML manipulation under HTTP
Message
De
21/08/2002 03:17:01
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
XML manipulation under HTTP
Divers
Thread ID:
00691791
Message ID:
00691791
Vues:
64
I have a weird behavior that I can't understand.

From a PRG on the server, if I create some XML and dump that into a file such as a.txt and view it in IE, I'll see it ok. That specific XML is built using:
RETURN STRCONV(STRCONV(loXML.XML(),1),9)
So, viewing that content in a file provides UTF-8 proper converted.

However, in the implementation, I need to have a Web Service which fires a URL call to the Web framework which will call the same PRG. However, in this case, as it transfers across HTTP, we have putting this on top of the string:
HTTP/1.0 200 OK
Content-type: text/xml
Expires: -1
The Web Service is using this to call the URL:
loHTTP=CREATEOBJECT('MSXML2.ServerXMLHTTP')
loHTTP.Open('GET',lcUrl,.F.)
loHTTP.Send()
Then, we are using this to extract the XML portion:
loXML=loHTTP.ResponseXML
lcXML=loXML.XML
So far, so good, from the client, to the Web Service, to the Web Server, back to the Web Service and back to the client, I can obtain my XML. However, I have lost the UTF-8 conversion. Anyone knows why?
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform