Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Offering http application updates.
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
01062701
Message ID:
01070932
Views:
25
>You know I don't actually remember - it's been many years since i've used FoxISAPI. The XML should show up whereever the POST date normally goes.

We used to be a team. You know - I play helpless gremmie - you write my code! What ever happened to our relationship. You still think I "borrowed" the mangos and passion fruit missing from your garden?:-). It was JVP, honest!

There is a question about the SERVER designation that ASP requires to instanciate a DOM. I guess, in this case, since VFP is a "server" that handle is not required.

FOXIASPI and a VFP ISAPI SERVER will receive an XMLHTTP SEND XML.

With the HTTP POST method it ends up in the FormsVars Argument - and it will receive an XML (really big ones). The XML String (formvars) is appended to INI file.

I will have to move the client script from VFP to Java. Don't tell me I cannot instanciate XMLHTTP from within a client JS - please!

Here is how the send looks in a VFP "client":
oHTTP=NewOBJECT("MSXML2.XMLHTTP")
*lcURL=[http://localhost/scripts/foxisapi.dll/VFPServer.VFPISAPI.TestXML]
oHTTP.open([POST],lcURL,.f.)
oHttp.setRequestHeader("Content-Type", "text/xml")
oHTTP.send(lcXML)
*The send looks typical!
Here is how it is received by a foxISAP VFP Server:
DEFINE CLASS VFPISAPI as Custom OLEPUBLI
PROCEDURE TestXML
LPARAMETERS lcFormsVars,lcIniFile,lnReleaseFlag
*Server.CreateObject does not work
oXML=CreateObject("Msxml2.DOMDocument")
oXML.async = .f.
oXML.resolveExternals = .f.
oXML.LoadXML(lcFormsVars)
RELEASE oXML
ENDPROC
ENDDEFINE && VFPISAPI
This is what the INI File looks like:
[FOXISAPI]
Request Method=POST
Query String=
Logical Path=/VFPServer.VFPISAPI.TestXML
Physical Path=C:\Inetpub\Scripts\VFPServer.VFPISAPI.TestXML
FoxISAPI Version=FoxISAPI v1.2
Request Protocol=HTTP/1.1
Referer=/scripts/foxisapi.dll
Server Software=Microsoft-IIS/5.1
Server Name=localhost
Server Port=80
Remote Host=xxx.x.x.x
Remote Address=xxx.x.x
Authenticated Username=COMPUTER\OWNER
[ALL_HTTP]
HTTP_ACCEPT=*/*
HTTP_ACCEPT_LANGUAGE=en-us
HTTP_CONNECTION=Keep-Alive
HTTP_HOST=localhost
HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461)
HTTP_AUTHORIZATION=Negotiate
TlRMTVNTUAADAAAAAAAAAEAAAAA *** intentionally truncated
HTTP_CONTENT_LENGTH=13703
HTTP_CONTENT_TYPE=text/xml
HTTP_ACCEPT_ENCODING=gzip, deflate
HTTP_CACHE_CONTROL=no-cache
[Accept]
*/*=Yes
[SYSTEM]
GMT Offset=-21600
<?xml version="1.0" standalone="no" ?>
***** Rest of XML Follows *****
First - note the content length. That much data cannot be parked as a parameter in the URL.
CREATEOBJECT does not work with the "SERVER" extension. Is this the case because DOM is being requested from inside a server?
Thanks
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform