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)

jsodeman 02-19-2007 11:52 PM

Thanks for the response. That's a shame about the lack of interest, maybe people don't understand the usefulness of a SOAP APi. Anyway, I found the setUser function for adding users.

Right now I've got a problem with sessions and doLogin. The SOAP client is getting a session which is logged in, but then the user gets a second session which isn't logged in. Any ideas?

jsodeman 02-20-2007 06:49 AM

As a note, the "print_r($threadinfo);" is still in the posted files under getPost. Caused me a load of problems til I hunted it down.

cyberbeggar 05-07-2007 10:16 AM

Is there anything like compatible for v 3.6.5 ?

leonsio 05-07-2007 10:19 AM

Quote:

Originally Posted by cyberbeggar (Post 1242964)
Is there anything like compatible for v 3.6.5 ?


should work with some changes

Disi 07-15-2007 10:31 PM

Useing vB 3.6.3
PHP Code:

[message:protected] => looks like we got no XML document

$connect
= new SoapClient('http://forum.domain.tdl/soap/server.php?wsdl');

$params=array(  'key'           =>      'thekey',
                           
'password'      =>      'test',
                           
'username'      =>      'test'
                                
);

    
$result=$connect->getLastPosts(20);
    
print_r($result); 

Any idea?

leonsio 07-16-2007 05:42 AM

look in the error-log from your webserver

Disi 07-16-2007 09:47 AM

No errors, everythings seems to be fine. there are only new entries in the access log

Code:

web - - [16/Jul/2007:12:52:02 +0200] "GET /soap/server.php?wsdl HTTP/1.0" 200 20123 "-" "-"

p57a4ffd5.dip.t-dialin.net - - [16/Jul/2007:12:52:02 +0200] "GET /index.php HTTP/1.1" 200 2433 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4"

web - - [16/Jul/2007:12:52:02 +0200] "POST /soap/server.php HTTP/1.1" 200 1657 "-" "PHP-SOAP/5.2.0-8+etch7"


treelovinhippie 08-20-2007 03:24 AM

Does this work for v3.6.8?

There are about 3 of these APIs, and it's exactly what I'm after but none of them seem to work for the latest version sadly :(

JEllis 09-21-2007 02:57 PM

Quote:

Originally Posted by Disi (Post 1292233)
Useing vB 3.6.3
PHP Code:

[message:protected] => looks like we got no XML document

$connect
= new SoapClient('http://forum.domain.tdl/soap/server.php?wsdl');

$params=array(  'key'           =>      'thekey',
                           
'password'      =>      'test',
                           
'username'      =>      'test'
                                
);

    
$result=$connect->getLastPosts(20);
    
print_r($result); 

Any idea?

Any luck solving this "looks like we got no XML document" error? I'm getting it - using 3.6.2.

vhalexxs 11-23-2007 02:50 PM

[24-Nov-2007 00:01:37] PHP Fatal error: Call to a member function unlock_tables() on a non-object "path-"\functions.php on line 5218

using 3.6.8, same as looks like we got no XML document error, any work around?

thanks

Finrod 01-14-2008 08:37 AM

Hello,

had someone found a solution for the Fatal Error with vB 3.6.8?
This API would be ideal to solve our problems without this Error ;)

Please let me know if someone has a workaround or similar?

Regards,
smag

Edit://

Found a solution for the Fatal Error to get into the next Error ;-)

replace the $db and $this->db with some other name, for example $db_soap and $this->db_soap and you will get rid of this error.

But afterwards you get an error which will tell you that you call the method query_slave_first() on a non-object.

There is also an obscure assignment in the constructor, $vbulletin = $this; but at the beginning of the constructor $vbulletin was made global ??.

Any Ideas someone ?

aussiev8 02-27-2008 10:10 AM

This is awsome, I haven't written a php app in a few months! Its all ruby on rails for me, I was hoping something like this came out! I'm going to start doing some really funky ror shit on my board!!!

gdll 03-04-2008 05:16 AM

would this work using nusoap ? or the functions addapted to it? :)

Briskoda 03-13-2008 09:56 PM

Quote:

Originally Posted by aussiev8 (Post 1451999)
This is awsome, I haven't written a php app in a few months! Its all ruby on rails for me, I was hoping something like this came out! I'm going to start doing some really funky ror shit on my board!!!


Likewise, I'm looking to create a club/members area on the back of subscriptions. php coding hat is very rusty, RoR is not ;) I'm just toying with which direction to push / pull data.

Current thinking is push paid subscription to notify RoR app of new sign up, send them a pm with instructions to complete the membership/club side of the application.

But still assembling the pieces, then I can sit down with some clear head space to try and make something work ;)

Way2IT 03-18-2008 08:39 AM

how do i install this thing with the 'product installer' - what's that? thanks

Way2IT 03-18-2008 09:20 AM

Does this script work with vb 3.6.8? Can someone please tell me how to install it correctly?

I get this message in visual studio

The document at the url http://www.someserver.com/forum/soap/server.php?wsdl was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'DISCO Document' is 'Discovery document at the URL http://www.someserver.com/forum/soap/server.php?wsdl

aussiev8 03-18-2008 10:37 AM

bah this sucks.. it doesn't work! uninstalled..

requests time back

Way2IT 03-18-2008 12:47 PM

can someone please tell me how to install this. I can't get it to work.

Way2IT 03-18-2008 12:49 PM

does this script work if you try to communicate with it from an .net application?

Way2IT 03-18-2008 12:50 PM

product-soapapi.xml what is it for?

Way2IT 03-18-2008 02:16 PM

"you must change the url and username/password and the key in this files"

key - which key is he referring to? anyone?

papaschloss 04-01-2008 12:30 AM

The key....
I, too, am wondering what exactly is meant by the key.

In server.php, there is a line
Code:

// set access_key
$this->access_key = $this->options['vbsoap_server_key'];

I'm new to vbulletin, so I need to ask, where does the options array come from and how does the key 'vbsoap_server_key' get set?

I'm using 3.6.x and I noticed that this library is based on 3.5.2. Has this proved to be much of a difference for anyone?

Any help much appreciated.

papaschloss 04-01-2008 04:30 PM

The original poster, leonsio, says

Quote:

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
Is he talking about 'the' installer? The one run by hitting install.php? If so then how does it know to add the setting for this key? And, really don't feel like emptying my DB... Or, is there some other installation process I'm unaware of.

I guess in the meantime, I'm going to try to hack this hack so as to remove the need for the key. <shrug>

papaschloss 04-01-2008 05:06 PM

OK, I figured the whole key thing out. The installation process being talked about by leonsio is a product installation process.

Admincp -> Plugins & Products -> Manage Products

Click on Add/Import Product and upload the product-soapapi.xml file from the root of the unzipped VB_SOAP archive.

Now go to

Admincp -> vBulletin Options -> VBulletin SOAP API (in the right hand list)

Click edit. The key should be there set to 'topsecretaccessky'. I set 'Activate or deactivate the SOAP server' to yes and then clicked on the Save button. However, I tried the login.php file again and got the infamous and always entertaining 'looks like we got no XML document'.

Help on this still appreciated.

e3fnxs6p 05-24-2008 10:14 AM

Quote:

Originally Posted by leonsio (Post 1185244)
i have stopped the development because of few interest
[...]

:(

vBulletin SOAP API deserves some more attention. Most developers developing in another language then PHP, will skip programmatic integration with vBulletin because they think it's only PHP based. But the vBulletin SOAP API allows these developers to use other languages (like Java, C#, Ruby) to communicate with vBulletin.

I think Java developers often try jforum.net as java forum software, but it hasn't a public API, so we want/need vBulletin SOAP API.

gregoryaide 07-10-2008 12:56 PM

Quote:

Originally Posted by papaschloss (Post 1480193)
OK, I figured the whole key thing out. The installation process being talked about by leonsio is a product installation process.

Admincp -> Plugins & Products -> Manage Products

Click on Add/Import Product and upload the product-soapapi.xml file from the root of the unzipped VB_SOAP archive.

Now go to

Admincp -> vBulletin Options -> VBulletin SOAP API (in the right hand list)

Click edit. The key should be there set to 'topsecretaccessky'. I set 'Activate or deactivate the SOAP server' to yes and then clicked on the Save button. However, I tried the login.php file again and got the infamous and always entertaining 'looks like we got no XML document'.

Help on this still appreciated.


Thanks for the help. I was ale to get it working on vBulletin 3.7. You need to change the login.php page to use the same key you specify in the admin control panel as well as make sure you use a full url for the SoapClient. I did nothing else special to get it to work. I've only tried the login.php and test.php pages so far but will look to itnergrate this on other pages throughout my site. Does anyone know of any mods similiar to this that are designed for vBulletin 3.7 or that might be better than this one? Seems like it's a common thing that would be needed in large sites that don't want to have to manage multiple user tables.

g.gadaleta 01-14-2009 03:01 PM

i'm using vb soap api to make login vbulletin through c# application :)

busur 02-03-2009 11:21 AM

Hello,

In C# application, i receive "Call to undefined function vbsetcookie()" error. It returns from server.php. what shall i do?

Hanoifishing 05-31-2009 07:12 AM

I have vbulletin 3.8.2 and install this products. but when I run it, I receipt this error. Call to undefined function vbsetcookie()

Please help me.

Thanks!

coffee_bean 07-01-2009 03:09 PM

I am surprised there's so little attention on this topic!

This addon would allow developers to create proper iPhone application for their site, especially where large community sites are involved, not to mention desktop applications or more customised feeds than RSS allows.

darkforce114 12-27-2009 02:16 AM

Quote:

Originally Posted by Way2IT (Post 1467805)
Does this script work with vb 3.6.8? Can someone please tell me how to install it correctly?

I get this message in visual studio

The document at the url http://www.someserver.com/forum/soap/server.php?wsdl was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'DISCO Document' is 'Discovery document at the URL http://www.someserver.com/forum/soap/server.php?wsdl


Did you get this working?

Trying to get it working on vb3.8.x... Same error.

abrahamcovelo 09-27-2010 09:18 AM

Any SOAP API for vbulletin version 4.x?

leonsio 09-27-2010 09:38 AM

sorry this project is no longer supported


All times are GMT. The time now is 05:45 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.01361 seconds
  • Memory Usage 1,824KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (33)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