Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
...VFP and ASP and maybe other TLAs
Message
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
00747333
Message ID:
00747396
Views:
12
This message has been marked as a message which has helped to the initial question of the thread.
>Hi troops,
>
>I've been banging my head against a wall for long enough. Being "Internet challenged" (I deal mostly with desktop appications), I thought I'd turn to the one place that I could count on to answer something that I haven't been able to figure out. Here's the scenario...
>
>Using IIS 5.0, I've been trying to pass a valid XML string to an ASP page (I told you about the TLAs < g >), as a parameter, to my local machine's ASP page without success. The ASP page, using VBScript, creates an instance of a VFP DLL, which it's supposed to pass the XML string to for processing.
>
>I've inserted output to confirm the status of the operation, and all seems fine. I created a function in the DLL to return a string, and it works perfectly. The parameter seems to have been passed successfully from the indications displayed by the ASP page. However, the MTDLL, otherwise seems to not process the XML string. Any code inserted to display it or its length fails.
>
>The question is: Can you pass an XML string to an ASP and have a VFP DLL process it?
>

Sure. Just "POST" it back to the ASP page. The ASP page picks up the posted form variable then forwards that to VFP. Your ASP might look like (I haven't tested this, it's definitely possible my ASP/VB syntax is a bit rusty):
<html>
<head></head>
<body>
&lt;% Dim XMLString As String %>
&lt;% Dim oVFP As New MyProject.MyClass %>
&lt;% XMLString = Request.Form("XMLString") %>
&lt;% oVFP.Method(XMLString) %>
</body>
</html>
How you "POST" the XML to the page depends on what type of application is going to do the posted (eg. VB, VFP, etc.)

You could post it from another web page:
<html>
<head></head>
<body>
<form action="http://www.somesite.com/MyASPPage.ASP" method="POST">
<textarea name="XMLString" rows="5" cols="80"></textarea>
<br/>
<input type="submit" name="btnSubmit">
</form>
</body>
>There's a side issue here too. Despite all my attempts to make sure that the object reference gets released, it doesn't. I've got to re-boot to re-build the DLL. Anyone have a clue about this?
>

ASP will hold the object reference. Use IISRESET from the DOS command prompt to release the object.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Reply
Map
View

Click here to load this message in the networking platform