Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - HttpAPI.asp  Question
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

HttpAPI.asp Question

 Post Reply Post Reply Page  <12
Author
JohnLug View Drop Down
Groupie
Groupie


Joined: 16 June 2008
Status: Offline
Points: 108
Post Options Post Options   Thanks (0) Thanks(0)   Quote JohnLug Quote  Post ReplyReply Direct Link To This Post Posted: 01 February 2011 at 3:37pm
Well, I'm just trying to get the HttpAPI.asp to display.
I'm not trying to change anything, yet.
The second link you posted here seems is to change the log in system and that I don't want.
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 01 February 2011 at 4:03pm
Hi John
Sorry I got held up on the phone

As far as I can see (and Bruce will answer this much more effectively I'm sure) this system HttpAPI.asp has to somehow linked into the forum, or an existing login system - probably why I've never used it. You said earlier about sounding dumb, but this looks pretty complex stuff, and I'm not fluent with it at all, so I can't really help you

I'm sure Bruce will give you a better and more comprehensive answer, but for me - well Wacko I'm confused with it too Wink
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 01 February 2011 at 4:05pm
It does work, I think what the issue is that you are trying to get the XML to display in a browser like a web page does.

This is the whole point of the API is that it does not display in a browser, but instead returns XML which is then parsed to get the data you need from the XML.

When you submit a test to the API, if you use a browser view the source code.

For example if you use the 1st example at http://demo.webwizforums.com/httpapi.asp to get the API Version it returns the following XML:-

<?xml version="1.0" encoding="utf-8" ?>
<ApiResponse>
 <ErrorCode>0</ErrorCode>
 <ErrorDescription/>
 <ResultData recordcount="1">
  <Record>
   <ApiVersion>1.03</ApiVersion>
  </Record>
 </ResultData>
</ApiResponse>

This XML code is intended to be parsed by an XML Parser, not as a viewable page in a web browser.
Back to Top
JohnLug View Drop Down
Groupie
Groupie


Joined: 16 June 2008
Status: Offline
Points: 108
Post Options Post Options   Thanks (0) Thanks(0)   Quote JohnLug Quote  Post ReplyReply Direct Link To This Post Posted: 01 February 2011 at 4:44pm
Well, I think I need to go and read more somewhere.
 
Thanks for the help, but I'm more lost now than before.Confused
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 01 February 2011 at 5:13pm
Right John, I've just tried this myself (stupid as I might be) and this is how I understand the principle of what happens. As an example I'm using Firefox as my browser, and my own forum (since that is one I know my username and password for apart from here)

I have not switched on the my api (do I need to? see what I mean).. anyway I typed in my web address to my forum, followed by HttpAPI.asp
And see the page that Bruce and I gave links to

I then chose as an example Returns the current version of Web Wiz Forums

And typed in my forum username and password, and clicked Test Web Wiz Forums Version, and a new window opened and it said:

<ApiResponse>
<ErrorCode>0</ErrorCode>
<ErrorDescription/>

<ResultData recordcount="1">

<Record>
<Software>Web Wiz Forums(TM)</Software>
<Version>9.69</Version>
<ApiVersion>1.03</ApiVersion>
<Copyright>(C)2001-2010 Web Wiz(TM). All rights reserved</Copyright>
<BoardName>TWS Forums - Adult Chat, Software, Help, Life</BoardName>
<URL>http://www.mrtws.com/forum/</URL>
<Email>my email was here</Email>
<Database>SQLServer</Database>
<InstallID>my install ID was here</InstallID>
<NewsPad>True</NewsPad>
<NewsPadURL/>
</Record>
</ResultData>
</ApiResponse>


I hope that helps try to explain it somewhat
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.