RTC Forums
November 24, 2024, 11:48:09 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Default Document Setting  (Read 6542 times)
jxu
RTC License++
*****
Posts: 4


« on: January 10, 2011, 02:06:33 AM »

I developed RTC ISAPI.dll with /TIME and / to return current server time, just to test ISAPI.dll.

Here is the issue:
Copy the DWE_DLL.dll to folder and create the site www.PD2B.com point to this folder, set defult doument as DWE_DLL.dll.
Now I should be able to get server time by type http://www.pd2b.com/
It returns server time, however the address bar changed to: http://www.pd2b.com/DWE_DLL.dll. I do not want to see DWE_DLL.dll to show up.
if I type http://www.pd2b.com/TIME
I got server Error and no time return, that means I need to use http://pd2b.com/DWE_DLL.dll/TIME

I WANT to get time just type: http://pd2b.com/TIME

How can I get this done???

Even worse, If I use Safari and Type http://www.pd2b.com, ask me to download DWE_DLL.dll file

I developed the same dll using WebBroker, IT works. Why RTC ISAPI.dll act differently and how can I get the default document working.


Thanks for your help.

Jianfei

Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: January 10, 2011, 02:10:38 AM »

you have to add / at the end of the virtual path you are using for the DLL in configuration, so if your DLL is now at http://www.pd2b.com/DWE_DLL.dll you have to set the root path for your domain to http://www.pd2b.com/DWE_DLL.dll/ if you do not want to be redirected there.

Best Regards,
Danijel Tkalcec
Logged
jxu
RTC License++
*****
Posts: 4


« Reply #2 on: January 10, 2011, 05:28:02 PM »

It is configured as a site. DWE_DLL.dll is a default document just like index.html. where can I add "/" to? configure default document as DWE_DLL.dll/?

Thanks,

Jianfei
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #3 on: January 10, 2011, 07:10:51 PM »

You need to configure it as a "virtual folder", not as a "page". Since everything works when you enter the full URL with DWE_DLL.dll it means that the ISAPI is working. You just need to set it up properly for the Server you are using.

Best Regards,
Danijel Tkalcec
Logged
jxu
RTC License++
*****
Posts: 4


« Reply #4 on: January 11, 2011, 01:21:24 AM »

I do not want to be virtual folder. I need it to be a Direct Site. Why RTC ISAPI.dll different from WebBroker ISAPI.dll. I can easily setup Webbroker ISAPI.dll as defult document.
This is very important to our project.
We would like to develop standalone and also ISAPI.dll web application with the same source code and the same html template. In Standalone mode, we can access function by www.domain.com/FunctionName and we also need the same way to access function through isapi.dll i.e. www.domain.com/FunctionName. The way we call function will be embeded inside of Javascripts and HTML Template. Therefore, we need to standize the way to call function by www.domain.com/FunctionName.

Thanks,

Jianfei
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #5 on: January 11, 2011, 08:48:32 AM »

Please set it up as a virtual folder, virtual path or a virtual host and see how it works. I do not know how your Web Server works or which one you are using, but one of these settings has to work correctly. The only thing the RTC SDK expects is that there is a "/" at the end if you are accessing the "root". This is required in order for you to be able to write the same code for an ISAPI and a stand-alone Server.

When the Web Server forwards the requests to the ISAPI, it has to change the URI from "/" into "/DWE_DLL.dll/" and not into "/DWE_DLL.dll", that's all. This also keeps the rest of communication with the ISAPI consistent.

Best Regards,
Danijel Tkalcec
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.027 seconds with 17 queries.