Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

non ASP web service for spelling corrections - RapidSpell Web ASP.NET - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
boaz
#1 Posted : Thursday, April 2, 2015 4:53:37 PM
Rank: Newbie

Groups: Registered

Joined: 4/2/2015
Posts: 4
I would like to integrate RapidSpell Web offering in a web site which is not an ASP.NET site.
The client side is pure Javascript + HTML.
The server side include Web services written in .NET (using WCF).
I would like to use your client side offering, and your service for As-You-Type corrections. Would it be possible to receive the details of the .NET API that I can access directly to get the corrections, which is not an ASP page? I would like to use my own web service, with exactly the same input/output but without the ASP packaging.
Jim
#2 Posted : Thursday, April 2, 2015 5:12:20 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
Hi, I want to be sure I understand exactly what you mean, because as it stands you certainly can use our product out of the box with from an ASP page

http://keyoti.com/produc.../JSmode/As_you_type.htm

Are you saying that you want to use WCF as the communication mechanism instead of our default aspx based response?

Thanks
Jim

-your feedback is helpful to other users, thank you!


boaz
#3 Posted : Thursday, April 2, 2015 6:24:19 PM
Rank: Newbie

Groups: Registered

Joined: 4/2/2015
Posts: 4
Hi Jim,
This is exactly the case. I would like to use the "As You Type" spell checking service from an html page (using standard textarea) and use WCF for communication instead of ASP.
From reviewing the ASP code you provide, I think it would be best to use some .NET API directly instead of an ASP tag.
Please advise.
Thanks, Boaz
Jim
#4 Posted : Thursday, April 2, 2015 9:25:33 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
I'll look into it and get back to you - we may be able to do this.

For the record, and for others reading (because I think you know this already) we don't use any legacy ASP stuff, it's all ASP.NET. It's just our server side response is handled by an ASP.NET control.
-your feedback is helpful to other users, thank you!


Jim
#5 Posted : Friday, April 3, 2015 4:22:56 AM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
Yes, I think we can do it - shouldn't be too much effort and we can have it ready in a few days. To reiterate, we will make it an option to use WCF (a *.svc file on the server) to communicate with the server. The WCF service will respond with a JSON response. The as you type client side script will use a JSON request. You won't need to change anything.

The dialog spell checker will continue to work as it already does, using an ASP.NET tag.

Please let me know if anything about that is a problem.

Jim
-your feedback is helpful to other users, thank you!


boaz
#6 Posted : Friday, April 3, 2015 7:12:24 AM
Rank: Newbie

Groups: Registered

Joined: 4/2/2015
Posts: 4
This sounds great, and using JSON for communication is aligned with what we are doing. I assume we should be able to customize the .svc file if we need it.
Thanks, Boaz
Jim
#7 Posted : Friday, April 3, 2015 3:48:58 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
Quote:
I assume we should be able to customize the .svc file if we need it.


Customize in what way? Do you mean the spell checker behavior? That would be specified in Javascript. Just want to make sure we're on the same page.
Thanks
Jim
-your feedback is helpful to other users, thank you!


boaz
#8 Posted : Sunday, April 5, 2015 4:18:59 PM
Rank: Newbie

Groups: Registered

Joined: 4/2/2015
Posts: 4
I didn't mean to customize the behavior - only to be able to change service settings so it can run in our app (if it doesn't work out-of-the-box).
Jim
#9 Posted : Thursday, April 9, 2015 3:52:21 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
Just wanted to let you know we're almost their with supporting WCF for communication. Thanks for your patience.
-your feedback is helpful to other users, thank you!


Jim
#10 Posted : Friday, April 10, 2015 11:21:19 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
Ok, sorry about the delay - it wasn't hugely complex but we have just been busy.

Now, I can't say that this has been exhaustively tested, but it is straightforward enough that it should be fine. If you do spot anything wrong please let me know.

You'll need this new DLL
https://www.dropbox.com/...lWeb.ASP.NETv4.dll?dl=0

And add these files to your folder where you have RapidSpell-AYT.js (eg. Keyoti_RapidSpell_Web_Common)
https://www.dropbox.com/.../RS-Extensions.zip?dl=0


To use it in WCF mode, add this to your pages (bold) - modifying the path as needed


<script src="/Keyoti_RapidSpell_Web_Common/RapidSpell-AYT.js"></script>
<script src="/Keyoti_RapidSpell_Web_Common/RapidSpell-Extension.js"></script>
<script type="text/javascript">
rapidSpellExtension.serviceProxy.commonFolderUrl = "/Keyoti_RapidSpell_Web_Common";
</script>



Best
Jim
-your feedback is helpful to other users, thank you!


Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.