vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBulletin SOAP API (https://vborg.vbsupport.ru/showthread.php?t=100559)

leonsio 01-25-2006 11:38 AM

by which methode?

maybe you should disable the wsdl cache

jliu 01-25-2006 11:45 AM

The fault was shown for the doLogin. Just disabled the wsdl cache, restarted apache, it is still the same. I am running on Windows.

jliu 02-01-2006 07:23 PM

Quote:

Originally Posted by jliu
The fault was shown for the doLogin. Just disabled the wsdl cache, restarted apache, it is still the same. I am running on Windows.

It is working now -- I had my php.ini error reporting changed to "report errors only" and the problem disappeared.

If I login using the examples/session/login.php, then go to my forum. The forum does not show the user is logged in. Is there anyhting else I need to do to achieve this?

By the way, it would be nice to add a few more methods in the API:

a) check user is logged in or not
b) if user is logged in, get their userid and/or group id

Thanks!

leonsio 02-01-2006 07:29 PM

if you have cookies ( from the server ) the user is logged in
getUsersmethode returns all user details ( groups included too)

twitch 02-14-2006 10:19 PM

Quote:

Originally Posted by leonsio
one use has created vwar module for my connector for joomla
its the same as vbulletin connector, i will port the module in the next weeks for vbulletin

to use it with this connector and vbulletin

http://forum.joomla.org/index.php/to...html#msg125646

release thread of the connector for vbulletin

so it is posible to have common login between joomla<->vbulletin->vwar ( or vbulletin<->joomla->vwar )

it will be only one login needed :D


Very cool! Keep us posted on the progress

oojacoboo 02-18-2006 09:22 PM

jliu, I am having the same problem you have. I finally got rid of that first error by defining the absolute path in the server.php file for CDW. I changed it to

path/to/forum/soap

I also defined the absolute /path/to/forum in the /includes/config.php file to be certain.

I now get this returned from the login.php file...

Quote:

login=> tester:tester
cookies from the server
Array
(
[cookies] =>
)
get the last 10 messages which the user can see
It isn't getting any cookies from the system and it isn't logging me in. I have about a dozen questions on this and the joomla connector. I know this isn't the place to ask the joomla questions, so I won't. BUT I WOULD REALLY LIKE TO SEE A SITE FOR THIS PROJECT! It is really hard to find the documentation and its scattered and very hard to follow. This is probably the 5th time I have offered to help with docs and a website, hosting, everything. I don't understand what the problem is?

So, my question is in regards to the "key"

Does this key need to be stored in a particular place? I have entered it in Joomla and in the "VB Connector" settings. But, I am not certain this is the ultimate location which this key should exist. Is it? Or where do I need to put it? Could this be the reason the user isn't getting logged into the system?

BTW: I recently upgraded our server to mysql 4.1 and php5. As a result the sql_module was broken. None of the posting features worked anymore. So, I decided to take the SOAP route as it was nicer anyway.

EDIT: Am I suppose to have an extra menu in my vbulletin/admincp for this SOAP Product? I have one for the Joomla Connector, but this one doesn't show up after an install. Maybe this is where the key is suppose to be entered...? Any idea why it wouldn't have installed properly?

I have removed it and reinstalled. I checked the xml file and there appears to be a large number of settings that would be the issue it seems. However, I can't find where to access these... What am I missing here? Maybe its just not writing to the database for some reason or another. I have tested the db from the admincp and it is writable. It just appears that the additional fields arn't being created with the table for this product.

EDIT2: Well it has occured to me that the XML file doesn't have any SQL commands to add the proper tables. In addition it is missing a few other necessary XML attributes to add it to the vbulletin admincp the way the application connector has been added. It is also missing the /admincp/.php file necessary. Are there any plans to include these? Are they required? How do I change the key and activate the soap server, etc.? I tried reinstalling after changing the default values in the xml, but that generated an error with vbulletin. Really hoping for some direction here. Thanks Lensio.

leonsio 02-19-2006 07:43 PM

wrong thread

this thread is only for SOAP API, not for problems with other modules
this module dont need any sql tables/changes

P.S. try to write my nickname right ;)

oojacoboo 02-19-2006 08:27 PM

sorry about the nick leonsio, my question IS in regards to the SOAP API and really has nothing to do with anything else. Yes, I am trying to get it to work with Joomla, but thats besides the point now. At the moment I am trying to get it to work with the test files included. If you read my post you would see. Thanks for your time.

leonsio 02-20-2006 05:56 AM

the installer ( XML ) create new field unter vbulletin settings, called SOAP API
you can setup then the Key for the soap connection

more is not needed to have this addon work

maybe you should check if the forumpath under includes/config.php is set

for access joomla from vbulletin side, you must install "vbulletin application connector" which you can find here in forum

in the testfiles you must edit the URL to your soap api and the key
you can not access my forum with this examples ( IP is not allowed ;) )

oojacoboo 02-20-2006 03:52 PM

thanks leonsio. I was able to change the settings now. So, it appears that it may be working properly now, but it doesn't log the user into the forums from the example login.php script. Here is the output that I am getting from the login.php script. Maybe you can tell me what it means the problem may be.

Quote:

login=> tester:tester
stdClass Object
(
[password] => 99019c1952ef8e438c9baf620ad5819d
[userid] => 551
)
cookies from the server
Array
(
[cookies] => Array
(
[bbsessionhash] => Array
(
[0] => fa434a65ea074d20d0c75dc21db02367
[1] => /
[2] => www(dot)macmod(dot)com
)

[bblastvisit] => Array
(
[0] => 1140403824
[1] => /
[2] => www(dot)macmod(dot)com
)

[bblastactivity] => Array
(
[0] => 0
[1] => /
[2] => www(dot)macmod(dot)com
)

)

)
get the last 10 messages which the user can see
I have tried it with different usernames as well, and I have changed around the key to be sure that mine was compatible. I also tried loading the login.php with bad login info for testing and it lets me know its bad. It also tells me if the key is bad.

In addition I am getting vbulletin error outputs like...

Quote:

Database error in vBulletin 3.5.3:

Invalid SQL:

SELECT userid
FROM user
WHERE testman='testman';

MySQL Error : Unknown column 'testman' in 'where clause'
Error Number : 1054
Date : Monday, February 20th 2006 @ 12:00:23 PM
Script : http://www(dot)macmod(dot)com/forum/soap/server.php
Referrer :
IP Address : 72.36.175.243
Username :
Classname : vB_Database
testman is a valid user in vbulletin as well. I get this vb output via email, as that is how I have specified. Any ideas here? I think I am getting close, just something small.

The files are located at the following...

site/forum/soap
http://www(dot)macmod(dot).com/forum...sion/login.php

I have changed the soapclient url and all the paramaters in the vbulletin options section for the SOAP API as well as the login.php script.

Thanks for all the help man, I really appreciate it, as well as everyone on our site. I am actually sure they will appreciate it more. Cheers.


All times are GMT. The time now is 10:49 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01170 seconds
  • Memory Usage 1,757KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete