Web Connect Win2008 Server
Re: Web Connect Win2008 Server
wwipstuff.dll is not a Com object so it doesn't need registering.
+++ Rick ---
Re: Visuals Studio Community 2013
Yes the Visual Studio Community Edition should work - it's basically Visual Studio Pro with a few minor things that don't work. It's much more feature complete than the old Express versions of Visual Studio.
I haven't specifically tried it with Web Connection, but I don't see why it wouldn't work. If you're using VS 2012 now the improvements are subtle - the most notable is the improved HTML editor and extended intellisense support for HTML, CSS and JavaScript.
+++ Rick ---
Re: STARTTLS
You need to use .NET mode.
Here's the documentation to send email with SSL (you have to uncomment the SSL related code):
http://www.west-wind.com/webconnection/wwClient_docs/?page=_s9001zxj2.htm
+++ Rick ---
Re: SMTP Error
+++ Rick ---
Re: TLS vs SSL
All we are using in this most recent implementation is
loHTTP = CREATE("wwHTTP")
loHTTP.AddPostKey("username" ,gcNMIUserName)
loHTTP.AddPostKey("password" ,gcNMIPassword)
....
lcResult = loHTTP.HTTPGet("https://xxxxx.php")
This has been in production for ~3months before the vendor (credit card processor) out of the blue gave us 1 week to change protocols from SSL3 to TLS
The actual user I wrote this for has some IT support, and they are looking into the certificates.
Thanks for your response.
Re: Web Connect Win2008 Server
u
Re: TLS vs SSL
Oh you're talking about HTTP calls? You don't have to do anything special to use SSL. Just access the URL and it will work.
The SSL stack used for HTTP calls uses what's in Windows. If you are seeing old SSL version that's because you're usign an old version of Windows (XP or older?)... IAC that should not matter...
+++ Rick ---
Re: Web Connect Win2008 Server
Foxpro version issues
I do have the 9.0 cd. I guess the only possibility is to move to 9.0 Other than a recompile of the exe, will 9.0 require any other changes?
Related - is there a need to move the Web Connection install from old server to new or should I just install new on the new box and not move anything from the old server?
Potter
Re: Foxpro version issues
Web Connection install on new server? Just move the files, no need to reinstall everything, but you'll have to re-configure the Web Server and permissions etc. You can use the Console application to do it or manually. The help file shows you how to do both.
+++ Rick ---
wwSQL class
We use Visual Foxpro 8.0 SP1.
We have included the wwsql class in our project.
In our main program file we set:
SET CLASSLIB TO wwSQL ADDITIVE
However, if we do
oSQL = CREATEOBJECT("wwSQL")
in our program the following error occurs:
Property value is out of bounds.
Any help? What are we doing wrong?
HELP: Logging In to Another Secure Web Site From WebConnect
I have a WebConnect application whose users would like to seamlessly go from my site to another that has login requirements and when they're done in that site return to mine.
The goal was to coordinate between the two sites, mine being the "parent" and the other being the "child,* so that the user only has to enter one username/password combination and after logging in to the "parent," clicking on a link would log them in to the "child," with my application generating a URL that would incorporate the username/password for the child site along with a parameter that would open the "child" site up in a new tab, so that when the user logged out, that tab would be closed and they would be back in the "parent" site (actually never leaving my site, just closing the tab and displaying the last tab they were on).
Working with the other company, I was able with Redirect to the site and pass in the username/password, but when the user logged out from that site they were returned to the original login page (because that's how they originally designed it).
So I asked if they could modify the URL to pass in a parameter to create a new tab in the browser by passing in the target="_blank" parameter, which they did, and they provided sample HTML below to test it out:
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title></head><body><div><ahref="https://ylqa.yeslawonline.com/LoginClient.aspx?uname=demouser&pword=demouser&parent=Close" target ="_blank" />LoginClient link</div></body></html>
This is a dummy account, so if you want to click on it, go ahead.
Initially I was using the below code with the Redirect:
lcReturnURL = gowcserver.oconfig.oTAWPROCESS.cHomePage + [<<a href="http://www.jwhcorp.com]" target="top" >>http://www.jwhcorp.com] <</a>> Response.Redirect([https://login.yeslawonline.com/LoginClient.aspx?uname=] + lcUserName + [&pword=] + lcPassWord + ; [&parent=] + lcReturnURL)
Which worked, but when the user exited it was returned to the user's home web page, and not the last page of my web application that they were one.
Using Redirect, it doesn't appear to let me also pass in the HTML "target" parameter. This is what I tried:
Response.Redirect([https://ylqa.yeslawonline.com/LoginClient.aspx?uname=] + lcUserName + [&pword=] + lcPassWord + ;[&parent=Close ] + [target="_blank"])
So I commented out the Redirect and tried goURL
goURL([https://ylqa.yeslawonline.com/LoginClient.aspx?uname=] + lcUserName + [&pword=] + lcPassWord + ;[&parent=Close ] + [target="_blank"])
Which did create a new tab, but on the tab the user was currently was on I got the No Output Returned from Server. I can't figure out why that is occurring, because I do use the goURL in other places in my app and I don't get that error.
I didn't make any changes in the calling method other than changing between using the Redirect and the goURL
Any ideas on what the best approach is to allow a user to log in to a "parent", and then while staying in the "parent" log in to a "child" web site with username and password by creating a new tab in the browser so when the user is done working in the "child," they can close the "child's" tab and be returned to the "parent"?
Hope this isn't too terribly confusing ...
Thanks for any help ...
Kevin
Re: wwSQL class
I think - it's the MemberData property that's the problem or WhatsThisHelp. Not even sure why the MemberData is set, there's no real need for that...
Anyway - I've attached an updated version of wwsql that will open on VFP 8.
BTW, probably a good time to update to VFP 9, no? :-)
+++ Rick ---
GetTimeZoneInformationForYear in WIN32API
I'm trying to access GetTimeZoneInformationForYear in the WIN API, but not getting expected return info, so suspect I'm not passing in the parameters properly. (My "skills" in this are are limited to looking at how Rick does things.)
The documentation I saw for this function (available in Vista+ and Server 2008+) calls for passing 3 parameters:
<code>
BOOL WINAPI GetTimeZoneInformationForYear(
_In_ USHORT wYear,
_In_opt_ PDYNAMIC_TIME_ZONE_INFORMATION pdtzi,
_Out_ LPTIME_ZONE_INFORMATION ptzi
);
* wYear [in]: The year for which the time zone settings are to be retrieved. The wYear parameter must be a local time value.
* pdtzi [in, optional]: A pointer to a DYNAMIC_TIME_ZONE_INFORMATION structure that specifies the time zone. If this parameter is NULL, the current time zone is used.
* ptzi [out]: A pointer to a TIME_ZONE_INFORMATION structure that receives the time zone settings.
I'm not interested in the 2nd parameter, so want to pass a NULL there--not sure how, but tried chr(0) below. Also, the first parameter wYear is supposed to be a "local time value". I've tried both passing the integer year and converting to a SYSTEMTIME, but neither of those works.
The code I've tried is below. It "runs", but the resulting lpTimeZoneInformation string doesn't have expected standard and daylight SYSTEMTIME info, which should appear in substr(lpTimeZoneInformation, 69, 16) and substr(lpTimeZoneInformation, 153, 16), respectively.
Any help appreciated!
local lpTimeZoneInformation, lpDynamicTZI, lnBias, lpTime
function GetYearTimeZoneInfo(tnYear)
declare integer GetTimeZoneInformationForYear ;
in Kernel32.dll ;
integer wYear, ;
string @lpDynamicTZI, ;
string @lpTimeZoneInformation
lpTimeZoneInformation = replicate(chr(0), 172)
lpDynamicTZI = chr(0) && trying to pass NULL to API
lnBias = GetTimeZoneInformationForYear(m.tnYear, lpDynamicTZI, @lpTimeZoneInformation)
* lnBias && returns 1, which looks right
return m.lpTimeZoneInformation
endfunc
-- Randy
Re: GetTimeZoneInformationForYear in WIN32API
-- Randy
Re: One hit turns into many hits
No, I was not trying to do anything with extensionless URLs.
Web.Config is . . .
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers>
<remove name="PHP" />
<remove name="AboMapperCustom-40218" />
<remove name="AboMapperCustom-13806" />
<add name="LOCI" path="*.loc" verb="*" modules="IsapiModule" scriptProcessor="C:\inetpub\wwwroot\LOCI\wc.dll" resourceType="Unspecified" preCondition="bitness32" />
</handlers>
<defaultDocument>
<files>
<clear />
<add value="index.html" />
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="iisstart.htm" />
<add value="default.aspx" />
<add value="index.php" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
Return PK of inserted SQL record
lcSQLString = [INSERTINTO Prospects(ProspectName, ProspectEmail, ClientPK, ClientEvalPK) OUTPUT INSERTED.PK ] + ; [VALUES (?lcFullName, ?lcEmail, ?lnClientPK, ?lnTestPK)] THIS.oServer.oEntakeSQL.Execute(lcSqlString,"TProspect") lnProspectID = TProspect.PK
Note the OUTPUT INSERTED.PK which returns the PK of the inserted record into the defined cursor - in this case, TProspect.
I thought this might be handy for some of you. It will not work on very old versions of SQL (2003 and older, I believe)
Michael
www.WebConnectionHosting.com