Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Registering UPS On-Line tools web service
Message
 
 
À
25/03/2008 11:27:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01305076
Message ID:
01305298
Vues:
8
>2. The UPS documentation says the UPS system wants to receive two concatenated XML documents. The first is an access request with the access code-user-pass info. The second is the actual rate request document. If I build the XML documents myself, is there any way I can initialize the service and send the file with the documents? The UPS documentation suggested this Visual Studio (Visual Basic) formulation:
>
>
>' create the object that manages the communication
>Dim oXMLHttp As XMLHTTP
>Set oXMLHttp = New XMLHTTP
>' prepare the HTTP POST request
>oXMLHttp.open "POST", "https://www.server.com/path", False
>oXMLHttp.setRequestHeader "Content-Type", _
>"application/x-www-form-urlencoded"
>' send the request
>oXMLHttp.send requestString
>' server's response will be available in oXMLHttp.responseXML
>
>
>Anything analogous in VFP? Thanks for your trouble.

You've to change a line that creates XMLHTTP object. The rest of code requires only minimal adjustment
oXMLHttp = CREATEOBJECT("Microsoft.xmlhttp")
...
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform